diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/ambiguousIDEA21660/pck/AmbiguousMethodCall.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/ambiguousIDEA21660/pck/AmbiguousMethodCall.java new file mode 100644 index 000000000000..fd7315d2f4bb --- /dev/null +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/ambiguousIDEA21660/pck/AmbiguousMethodCall.java @@ -0,0 +1,15 @@ +package pck; + +class TestCase { + void assertEquals(Object o1, Object o2) {} + + void assertEquals(int i1, int i2) {} +} + +class Test extends TestCase { + void test() { + int expected = 1; + Integer actual = 2; + assertEquals(expected, actual); + } +} \ No newline at end of file diff --git a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/AdvHighlightingJdk7Test.java b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/AdvHighlightingJdk7Test.java index e3556fb167b4..df35daebe098 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/AdvHighlightingJdk7Test.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/AdvHighlightingJdk7Test.java @@ -177,4 +177,8 @@ public class AdvHighlightingJdk7Test extends DaemonAnalyzerTestCase { doTestAmbiguous(); } + public void testAmbiguousIDEA21660() throws Exception { + doTestAmbiguous(); + } + }