testdata for IDEA-74899

This commit is contained in:
anna
2012-04-05 19:08:44 +02:00
parent 7c97044b3d
commit b706c5284e
2 changed files with 12 additions and 0 deletions
@@ -0,0 +1,11 @@
import java.util.Collections;
import java.util.Map;
public class IDEA74899 {
void foo() {
Map<String, String> m = Collections.emptyMap();
if (<error descr="Operator '==' cannot be applied to 'java.util.Map<java.lang.String,java.lang.String>', 'java.util.Map<java.lang.Object,java.lang.Object>'">m == Collections.emptyMap()</error>) {
return;
}
}
}
@@ -129,6 +129,7 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
public void testIDEA66311() throws Exception { doTest17Incompatibility();}
public void testIDEA66311_16() throws Exception { doTest(false);}
public void testIDEA76283() throws Exception {doTest(false);}
public void testIDEA74899() throws Exception {doTest(false);}
public void testJavaUtilCollections_NoVerify() throws Exception {
PsiClass collectionsClass = getJavaFacade().findClass("java.util.Collections", GlobalSearchScope.moduleWithLibrariesScope(getModule()));