aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr108370/EnumTest.aj
blob: 44286f58a6d1d7a63352919d5b5ce27bc0c692f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
public aspect EnumTest {
    public static enum Test {
	A,B,C
    }

    public void et.Q.foo(Test t) {
	switch (t) {
	case B:
		System.out.println("B!");
	    break;
	}
    }
    
    public static void main(String[] args) {
    	et.Q q = new et.Q();
    	q.foo(Test.B);
    	q.foo(Test.C);
    }
}