You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CircularFolding.java 393B

12345678910111213141516171819
  1. public class CircularFolding {
  2. static final int x = Hoo.x * 8;
  3. public static void main(String[] args) {
  4. switch (args.length) {
  5. case x: System.err.println("this");
  6. case Hoo.x: System.err.println("shouldn't");
  7. case Goo.x: System.err.println("compile");
  8. }
  9. }
  10. }
  11. class Hoo {
  12. static final int x = Goo.x - 3;
  13. }
  14. class Goo {
  15. static final int x = 2 + CircularFolding.x;
  16. }