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

public class FieldI {
  public static void main(String []argv) {
    Base<Integer> base    = new Base<Integer>();
    List<String> strList = new ArrayList<String>();
    base.j = strList; // error, violates bounds
  }
}

class Base<N extends Number> { }

aspect X {
  public List<Z> Base<Z>.j; // ok
}