summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/GenericMethodITD3.aj
blob: 17c4c58d9bf7d864c7743439651f48f8e5f0bfde (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 GenericMethodITD3 {

  public static void main(String[] argv) {
    List<A> as1 = new ArrayList<A>();
    List<A> as2 = new ArrayList<A>();
    new Base().simple(as1,as2); // ok, both List<A>
  }

}

class A {}
class B extends A {}

aspect X {
  <E> void Base.simple(List<E> one,List<E> two) {}
}