mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
testdata for IDEA-57336
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
|
||||
abstract class A<<warning descr="Type parameter 'S' is never used">S</warning>> {
|
||||
abstract <T> void foo(A<? extends A<T>> x);
|
||||
void bar(A<? extends A> x){
|
||||
foo<error descr="'foo(A<? extends A<java.lang.Object>>)' in 'A' cannot be applied to '(A<capture<? extends A>>)'">(x)</error>;
|
||||
}
|
||||
}
|
||||
@@ -492,6 +492,10 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_7, true);
|
||||
}
|
||||
|
||||
public void testIDEA57336() throws Exception {
|
||||
doTest(LanguageLevel.JDK_1_8, JavaSdkVersion.JDK_1_8, true);
|
||||
}
|
||||
|
||||
public void testJavaUtilCollections_NoVerify() throws Exception {
|
||||
PsiClass collectionsClass = getJavaFacade().findClass("java.util.Collections", GlobalSearchScope.moduleWithLibrariesScope(getModule()));
|
||||
assertNotNull(collectionsClass);
|
||||
|
||||
Reference in New Issue
Block a user