aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs161/pr233838/Z2.java
blob: 9123a348561e29757f9c544d8031a612ac8f8c53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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(); }
}