blob: 5b0b226567ec4be1c5e42755de00bb57297a1a3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import java.util.*;
public class FieldM {
public static void main(String []argv) {
List<Double> doubleList = new ArrayList<Double>();
List<Float> floatList = new ArrayList<Float>();
One o = new One();
o.i = new ArrayList();
Two t = new Two();
t.i = floatList;
}
}
interface I<N extends Number> { }
class One implements I<Double> {}
class Two implements I<Float> {}
aspect X {
public List<Z> I<Z>.i; // ok
}
|