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