summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/ParameterizedMethodITD1.aj
blob: 391a91df6261d67537f189d97878e32d807a8564 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Calling an ITD'd method where the parameterization is '? extends Super'
import java.util.*;

class Base { }

public class ParameterizedMethodITD1 {

  public static void main(String[] argv) {
    List<A> as = new ArrayList<A>();
    new Base().simple(as);
  }
}

class Super {}

class A extends Super {}


aspect X {
  void Base.simple(List<? extends Super> list) {}
}