blob: 150e3a2a8ee12836812fa8f1312f138e374770e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
import java.util.*;
public class ValOutersWithGenerics<Z> {
class Inner {
}
public void testOutersWithGenerics() {
final java.lang.String foo = "";
List<Inner> list = new ArrayList<Inner>();
final ValOutersWithGenerics<Z>.Inner elem = list.get(0);
}
public void testLocalClasses() {
class Local<A> {
}
final Local<java.lang.String> q = new Local<String>();
}
static class SubClass extends ValOutersWithGenerics<String> {
public void testSubClassOfOutersWithGenerics() {
List<Inner> list = new ArrayList<Inner>();
final ValOutersWithGenerics<java.lang.String>.Inner elem = list.get(0);
}
}
}
|