diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57492.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57492.java new file mode 100644 index 000000000000..5cd402a50c26 --- /dev/null +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57492.java @@ -0,0 +1,17 @@ +abstract class A{ + abstract S foo(S x, S y); + > void baz(A a){} + + void bar(A x, A y){ + baz(foo(x, y)); + } +} + +abstract class A1{ + abstract S foo(S x, S y); + , S extends Number & Comparable> void baz(A1 a){} + + void bar(A1 x, A1 y){ + baz(foo(x, y)); + } +} \ No newline at end of file diff --git a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java index 87ca8854b6dd..93be81c1bd3d 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java @@ -165,6 +165,7 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase { public void testIDEA57484() throws Exception { doTest(false); } public void testIDEA57485() throws Exception { doTest(false); } public void testIDEA57486() throws Exception { doTest(false); } + public void testIDEA57492() throws Exception { doTest(false); } public void testInconvertibleTypes() throws Exception { doTest(false); } public void testIncompatibleReturnType() throws Exception { doTest(false); } public void testContinueInferenceAfterFirstRawResult() throws Exception { doTest(false); }