summaryrefslogtreecommitdiffstats
path: root/tests/errors/CircularPlusImplementsIntros.java
blob: a9dde722c57b013f6e7a176b6bcd5d399ff98841 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
public class CircularPlusImplementsIntros {
    public static void main(String[] args) {
        org.aspectj.testing.Tester.check(false, "shouldn't have compiled!");
    }
}

interface I {}
interface J {}

class C {
    {
        I i = new I() {};
        J j = new J() {};
    }
}

aspect A {
    declare parents: I implements J;
    declare parents: J implements I;
}