testdata for IDEA-139067

This commit is contained in:
Anna Kozlova
2015-05-19 20:50:23 +02:00
parent 46e9797103
commit 8dae96f46f
2 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
import java.util.*;
interface A<T extends ArrayList<T>> {
A<<error descr="Type parameter '? extends List<Object>' is not within its bound; should extend 'java.util.ArrayList<? extends java.util.List<java.lang.Object>>'">? extends List<Object></error>> foo();
A<? extends List<T>> foo1();
}

View File

@@ -488,6 +488,10 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_7, true);
}
public void testIDEA139067() throws Exception {
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_7, true);
}
public void testJavaUtilCollections_NoVerify() throws Exception {
PsiClass collectionsClass = getJavaFacade().findClass("java.util.Collections", GlobalSearchScope.moduleWithLibrariesScope(getModule()));
assertNotNull(collectionsClass);