testdata for IDEA-57336

This commit is contained in:
Anna Kozlova
2015-05-20 10:47:23 +02:00
parent 8dae96f46f
commit 443fda57f5
2 changed files with 11 additions and 0 deletions
@@ -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);