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

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

class Base<N extends Number> { 
  public Base() {}
  <Y extends Number> Base(Set<N> sn, List<Y> ys) {}
}

aspect X {
  public Base<Z>.new(List<Z> lz) { this(); } // OK, Z becomes N in parameter
}