From 6cee706093da33673719bba58d08d27aa539c562 Mon Sep 17 00:00:00 2001 From: anna Date: Tue, 23 Oct 2012 20:06:32 +0200 Subject: [PATCH] testdata for IDEA-57346 --- .../daemonCodeAnalyzer/genericsHighlighting/IDEA57346.java | 4 ++++ .../intellij/codeInsight/daemon/GenericsHighlightingTest.java | 1 + 2 files changed, 5 insertions(+) create mode 100644 java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57346.java diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57346.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57346.java new file mode 100644 index 000000000000..2a221b80e035 --- /dev/null +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57346.java @@ -0,0 +1,4 @@ + +class D { + void foo(D> x){ this.bar(x); } + void bar(D> x){} 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 1366acc44a09..a6012407290e 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java @@ -172,6 +172,7 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase { public void testIDEA57496() throws Exception { doTest(false); } public void testIDEA57264() throws Exception { doTest(false); } public void testIDEA57315() throws Exception { doTest(false); } + public void testIDEA57346() 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); }