summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/GenericMethodITD7.aj
blob: 923f71692cf08990a075f7df5ce95fa2cbef0fce (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 GenericMethodITD7 {

  public static void main(String[] argv) {
    List<Number> ns = new ArrayList<Number>();
    List<Double> ds = new ArrayList<Double>();
    new Base().simple(ns,ds); // ok, List<Number> and List<Double>
  }
}

class Super {}

class A extends Super {}

aspect X {
  <E> void Base.simple(List<E> lista,List<? extends E> listb) {}
}