aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs160/simplejava/CtorA.java
blob: 9c0d6cd8d1c062e60c3be66fb72525a6bd22a937 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
}