testdata for IDEA-63331

This commit is contained in:
anna
2013-10-22 21:15:26 +02:00
parent e9fd7055e8
commit 8b4c147b6f
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import java.util.Collections;
import java.util.List;
class A<T> {}
class B<T> {
B(List<A<?>> list) {}
}
public class Bug {
private static B case1(A<?> a) {
return new B(Collections.singletonList(a));
}
private static B case2(A<A> a) {
return new B(Collections.singletonList(a));
}
public static void main(String[] args) {
System.out.println(case1(new A()));
System.out.println(case2(new A<A>()));
}
}