aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs161
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs161')
-rw-r--r--tests/bugs161/pr233838/Z.java17
-rw-r--r--tests/bugs161/pr233838/Z2.java17
2 files changed, 34 insertions, 0 deletions
diff --git a/tests/bugs161/pr233838/Z.java b/tests/bugs161/pr233838/Z.java
new file mode 100644
index 000000000..5a3e8bc71
--- /dev/null
+++ b/tests/bugs161/pr233838/Z.java
@@ -0,0 +1,17 @@
+interface X {
+ static aspect IMPL {
+ public void X.test() { System.out.println("X.test()"); }
+ }
+}
+
+interface Y {
+ static aspect IMPL {
+ declare precedence : X.IMPL, Y.IMPL;
+
+ public void Y.test() { System.out.println("Y.test()"); }
+ }
+}
+
+public class Z implements X, Y {
+ public static void main(String[] args) throws Exception { new Z().test(); }
+}
diff --git a/tests/bugs161/pr233838/Z2.java b/tests/bugs161/pr233838/Z2.java
new file mode 100644
index 000000000..9123a3485
--- /dev/null
+++ b/tests/bugs161/pr233838/Z2.java
@@ -0,0 +1,17 @@
+interface X {
+ static aspect IMPL {
+ public void X.test() { System.out.println("X.test()"); }
+ }
+}
+
+interface Y {
+ static aspect IMPL {
+ declare precedence : Y.IMPL, X.IMPL;
+
+ public void Y.test() { System.out.println("Y.test()"); }
+ }
+}
+
+public class Z2 implements X, Y {
+ public static void main(String[] args) throws Exception { new Z2().test(); }
+}