summaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/sharing/MethodM.aj
blob: 2612186f78f959af661fb10718d7258c75c0565e (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 MethodM {
  public static void main(String []argv) {
    List<Double> doubleList = new ArrayList<Double>();
    List<Float>  floatList  = new ArrayList<Float>();

    One o = new One();
	List<Double> ld = o.m();

    Two t = new Two();
	List<Float>  lf = t.m();
  }
}

interface I<N extends Number> { }

class One implements I<Double> {}

class Two implements I<Float> {}

aspect X {
  public List<Z> I<Z>.m() { return null;} // ok
}