summaryrefslogtreecommitdiffstats
path: root/tests/errors/CircularPlusImplementsIntros.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errors/CircularPlusImplementsIntros.java')
-rw-r--r--tests/errors/CircularPlusImplementsIntros.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/errors/CircularPlusImplementsIntros.java b/tests/errors/CircularPlusImplementsIntros.java
new file mode 100644
index 000000000..a9dde722c
--- /dev/null
+++ b/tests/errors/CircularPlusImplementsIntros.java
@@ -0,0 +1,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;
+}