testdata for IDEA-85887

This commit is contained in:
Anna Kozlova
2012-05-11 14:09:35 +04:00
parent af04218bb3
commit 55b7c0f4fe
3 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
import java.util.*;
class Test {
void foo(){
Properties properties = System.getProperties();
final Map<String, String> systemProperties = <error descr="Inconvertible types; cannot cast 'java.util.Properties' to 'java.util.Map<java.lang.String,java.lang.String>'">(Map<String, String>) properties</error>;
}
}

View File

@@ -135,6 +135,7 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
public void testIllegalGenericTypeInInstanceof() throws Exception {doTest(false);}
public void testIDEA57339() throws Exception {doTest(false);}
public void testIDEA57340() throws Exception {doTest(false);}
public void testInconvertibleTypes() throws Exception {doTest(false);}
public void testJavaUtilCollections_NoVerify() throws Exception {
PsiClass collectionsClass = getJavaFacade().findClass("java.util.Collections", GlobalSearchScope.moduleWithLibrariesScope(getModule()));

Binary file not shown.