blob: 3819387f776cdef2a3f4c3aae54ef0a2dc96cec3 (
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 MethodM2 {
public static void main(String []argv) {
List<Double> doubleList = new ArrayList<Double>();
List<Float> floatList = new ArrayList<Float>();
One o = new One();
o.m(new ArrayList<Double>());
Two t = new Two();
t.m(new ArrayList<Float>());
}
}
interface I<N extends Number> { }
class One implements I<Double> {}
class Two implements I<Float> {}
aspect X {
public void I<Z>.m(List<Z> lz) {} // ok
}
|