summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/ParameterizedMethodITD2.aj
blob: 7dfd3e0321c54a68ec6feb5ffde097e770599156 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import java.util.*;

class Base { }

public class ParameterizedMethodITD2 {

  public static void main(String[] argv) {
    List<A> as = new ArrayList<A>();
    new Base().simple(as); // error, A is not a number...
  }
}

class Super {}

class A extends Super {}


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