testdata for IDEA-57361

This commit is contained in:
Anna Kozlova
2015-05-21 10:00:29 +02:00
parent 819f620cc8
commit 477689db69
2 changed files with 11 additions and 0 deletions
@@ -0,0 +1,7 @@
class C<T> {
class D {}
<T extends C<String>.D> void foo(){
this.<<error descr="Type parameter 'C.D' is not within its bound; should extend 'C<java.lang.String>.D'">D</error>>foo();
}
}
@@ -500,6 +500,10 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_7, false);
}
public void testIDEA57361() throws Exception {
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_7, false);
}
public void testJavaUtilCollections_NoVerify() throws Exception {
PsiClass collectionsClass = getJavaFacade().findClass("java.util.Collections", GlobalSearchScope.moduleWithLibrariesScope(getModule()));
assertNotNull(collectionsClass);