mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 17:03:12 +07:00
testdata for IDEA-74899
This commit is contained in:
+11
@@ -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()));
|
||||
|
||||
Reference in New Issue
Block a user