blob: d798f9c7f93f45ada6fa98b3f01408de72a0f0ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import java.util.*;
public aspect CtorG {
// visibility options...
public Base<Z>.new(List<Z> lz,int i) {}
private Base<Z>.new(List<Z> lz,String s) {}
Base<Z>.new(List<Z> lz,boolean b) {}
public static void main(String []argv) {
List<Integer> intList = new ArrayList<Integer>();
Base b1 = new Base(intList,1);
// Base b2 = new Base(intList,"a");
Base b3 = new Base(intList,true);
}
}
class Base<N extends Number> {
}
|