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

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

class Base<N extends Number> { }

aspect X {
  public List<Z> Base<Z>.j; // OK, Z becomes N
}