From c4b1b8308999d7b0eda01e5032033b53d8ee0843 Mon Sep 17 00:00:00 2001 From: anna Date: Tue, 23 Oct 2012 19:17:06 +0200 Subject: [PATCH] testdata for IDEA-57493 --- .../genericsHighlighting/IDEA57493.java | 8 ++++++++ .../codeInsight/daemon/GenericsHighlightingTest.java | 1 + 2 files changed, 9 insertions(+) create mode 100644 java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57493.java diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57493.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57493.java new file mode 100644 index 000000000000..b8720b80799e --- /dev/null +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57493.java @@ -0,0 +1,8 @@ +abstract class A{ + abstract S foo(S x, S y); + > void baz(A a){} + + void bar(A x, A 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 93be81c1bd3d..43decfe27792 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java @@ -166,6 +166,7 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase { public void testIDEA57485() throws Exception { doTest(false); } public void testIDEA57486() throws Exception { doTest(false); } public void testIDEA57492() throws Exception { doTest(false); } + public void testIDEA57493() 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); }