diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/ambiguousIDEA67841/pck/AmbiguousMethodCall.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/ambiguousIDEA67841/pck/AmbiguousMethodCall.java new file mode 100644 index 000000000000..c79d7c8b875b --- /dev/null +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/ambiguousIDEA67841/pck/AmbiguousMethodCall.java @@ -0,0 +1,21 @@ +package pck; + +import java.util.Collection; +import java.util.List; + +import static pck.D.foo; +import static pck.C.foo; + +public class C { + static , S> void foo(T x) { } +} + +class D { + static , S> String foo(T x) { return null; } +} + +class B{ + public static void bar(){ + foo(null).toLowerCase(); + } +} \ 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 25bb907dbddd..352048dea4b7 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/AdvHighlightingJdk7Test.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/AdvHighlightingJdk7Test.java @@ -152,6 +152,10 @@ public class AdvHighlightingJdk7Test extends DaemonAnalyzerTestCase { doTestAmbiguous(); } + public void testAmbiguousIDEA67841() throws Exception { + doTestAmbiguous(); + } + public void testAmbiguousIDEA57535() throws Exception { doTestAmbiguous(); }