summaryrefslogtreecommitdiffstats
path: root/tests/java5/decps/Basic2.java
blob: 5e14eb50abc75bb768f3ce762263d3d0f150de73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
public class Basic2 {
  public static void main(String []argv) {
    Basic2 b = new Basic2();
    if (!(b instanceof X.I)) throw new RuntimeException("Basic2 should implement I");
  }
}



aspect X {

  interface I { 
  }

  public void I.m2() {
    
  }


  declare parents: Basic2 implements I;


  before(): execution(* *(..)) {
  }

}