aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs161/pr233838/Z.java
blob: 5a3e8bc71344d258b03240268e4c9e609390ccea (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 : 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(); }
}