--- /dev/null
+
+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>;
+ }
+}
\ No newline at end of file
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);