mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
testdata for IDEA-81318
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
class Test {
|
||||
public static<F, S> void xyz() {
|
||||
class Pair<X, Y> {}
|
||||
class Role<F> {}
|
||||
|
||||
Map<?, List<Pair<?, ?>>> map = null;
|
||||
Role<F> role = null;
|
||||
|
||||
List<Pair<F, S>> result = <error descr="Inconvertible types; cannot cast 'java.util.List<Pair<?,?>>' to 'java.util.List<Pair<F,S>>'">(List<Pair<F, S>>) map.get(role)</error>;
|
||||
}
|
||||
}
|
||||
@@ -520,6 +520,10 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
doTest(LanguageLevel.JDK_1_7, JavaSdkVersion.JDK_1_7, false);
|
||||
}
|
||||
|
||||
public void testIDEA81318() 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);
|
||||
|
||||
Reference in New Issue
Block a user