aboutsummaryrefslogtreecommitdiffstats
path: root/tests/errors/CantCallConstructorOnAspects.java
blob: 02b5d260aaf1bd7867066bcf22704fe9fbbef577 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
public class CantCallConstructorOnAspects {
    public static void main(String[] args) {
	//ERROR: can't call new on an aspect/of
	A a = new A();
    }
}

class C {
}

aspect A /*of eachobject(instanceof(C))*/ {
}