From c4666625eedda823334e26af56921e30c585ca25 Mon Sep 17 00:00:00 2001 From: anna Date: Tue, 23 Oct 2012 19:16:11 +0200 Subject: [PATCH] testdata for IDEA-57492 --- .../genericsHighlighting/IDEA57492.java | 17 +++++++++++++++++ .../daemon/GenericsHighlightingTest.java | 1 + 2 files changed, 18 insertions(+) create mode 100644 java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57492.java 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); }