summaryrefslogtreecommitdiffstats
path: root/tests/pureJava/CircularFolding.java
blob: 2d5d39106fe09ac55eabb77b39536039d8d5cdf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
public class CircularFolding {
    static final int x = Hoo.x * 8;

    public static void main(String[] args) {
	switch (args.length) {
	case x: System.err.println("this");
	case Hoo.x: System.err.println("shouldn't");
	case Goo.x: System.err.println("compile");
	}
    }
}

class Hoo {
    static final int x = Goo.x - 3;
}

class Goo {
    static final int x = 2 + CircularFolding.x;    
}