summaryrefslogtreecommitdiffstats
path: root/tests/bugs154/pr203646/ExampleF.java
blob: 9c7e16f46a31bcbebb131d59878ac9dd0df585fa (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
// ITD of a method onto a generic inner type - complex example

class Goo {}

interface I {
  interface J<Q extends Goo> {
  }
}

aspect Bang {
 public int I.J.intro(String a,Integer b) {return 42;}
}

class Impl implements I {
	class InnerImpl implements J {
	}
}

public class ExampleF {
  public static void main(String []argv) {
    Impl i = new Impl();
    Impl.InnerImpl j = i.new InnerImpl();
    System.out.println(j.intro("o",new Integer(3)));
  }
}