aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs161/pr233838/Z2.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs161/pr233838/Z2.java')
-rw-r--r--tests/bugs161/pr233838/Z2.java17
1 files changed, 17 insertions, 0 deletions
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(); }
+}