aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/generics/itds/sharing/MethodA3.aj
blob: f7448a5e2af118e89b41390022f5df4a7b48c110 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import java.util.*;

public class MethodA3 {
  public static void main(String []argv) {
    Base<Integer> base    = new Base<Integer>();
    List<Integer> intList = new ArrayList<Integer>();
    intList = base.m(intList);
  }
}

class Base<N extends Number> { }

aspect X {
  public List<Z> Base<Z>.m(List<Z> lz) { // OK, Z becomes N in return type and parameter
    return lz;
  }; 
}