summaryrefslogtreecommitdiffstats
path: root/tests/errors/AmbiguousInterface.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errors/AmbiguousInterface.java')
-rw-r--r--tests/errors/AmbiguousInterface.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/errors/AmbiguousInterface.java b/tests/errors/AmbiguousInterface.java
new file mode 100644
index 000000000..323b5f78d
--- /dev/null
+++ b/tests/errors/AmbiguousInterface.java
@@ -0,0 +1,14 @@
+public class AmbiguousInterface {
+ public static void main(String[] args) {
+ org.aspectj.testing.Tester.check(false, "shouldn't have compiled");
+ }
+}
+interface Outer {
+ interface Inner extends Outer {
+ interface Questionable {}
+ }
+ interface Questionable extends Inner {}
+}
+interface Another extends Outer, Outer.Questionable {
+ interface AnotherInner extends Questionable {}
+}