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

public class CtorE {
  public static void main(String []argv) {
    Base<Integer> base    = new Base<Integer>();
    List<String> stringList = new ArrayList<String>();
    Base b = new Base(stringList);
  }
}

class Base<N extends Number> { 
}

aspect X {
  public Base<Z>.new(List<String> ls) { this(); }; // ok - specified type variable but didnt use it (could put a lint warning on this case?)
}