aboutsummaryrefslogtreecommitdiffstats
path: root/tests/errors/ProtectedFieldIntro.java
blob: 2d83b636ed05998ff1edbc8e0dd69916b2eb4f20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
public class ProtectedFieldIntro {
    public static void main(String[] args) {
        new ProtectedFieldIntro().realMain(args);
    }
    public void realMain(String[] args) {
        org.aspectj.testing.Tester.check(false, "shouldn't have compiled");
    }
    
    public ProtectedFieldIntro() {
    }
}
class C {}
aspect A {
    protected int C.i = 13; // can't do this
}