summaryrefslogtreecommitdiffstats
path: root/tests/errors/BadReferences.java
blob: 0125a447b3be456be0eb1b7a13accc2c6205330c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
aspect BadReferences {
    public void main(String[] args) {
	int x = C.x;

	Object o = new C.Inner();
    }
}


class C implements I1, I2 {
}

interface I1 {
    public static int x = 1;

    public static class Inner {
    }
}
interface I2 {
    public static int x = 2;
    
    public static class Inner {
    }
}