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

public class CtorI {
  public static void main(String []argv) {
    List<String> ls = new ArrayList<String>();
    Base b = new Base(ls); // error, violates bounds
  }
}

class Base<N extends Number> { }

aspect X {
  public Base<Z>.new(List<Z> lz) {this();}
}