mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
testdata for IDEA-63331
This commit is contained in:
+24
@@ -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>()));
|
||||
}
|
||||
}
|
||||
@@ -325,6 +325,7 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
|
||||
public void testIDEA114894() { doTest5(false); }
|
||||
public void testIDEA60818() { doTest5(false); }
|
||||
public void testIDEA63331() { doTest5(false); }
|
||||
|
||||
public void testJavaUtilCollections_NoVerify() throws Exception {
|
||||
PsiClass collectionsClass = getJavaFacade().findClass("java.util.Collections", GlobalSearchScope.moduleWithLibrariesScope(getModule()));
|
||||
|
||||
Reference in New Issue
Block a user