From 132c55ebb1f2cd017586b717f878af8c4d9e2fc2 Mon Sep 17 00:00:00 2001 From: anna Date: Tue, 23 Oct 2012 20:48:07 +0200 Subject: [PATCH] testdata for IDEA-57311 --- .../genericsHighlighting/IDEA57311.java | 11 +++++++++++ .../codeInsight/daemon/GenericsHighlightingTest.java | 1 + 2 files changed, 12 insertions(+) create mode 100644 java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57311.java diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57311.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57311.java new file mode 100644 index 000000000000..2be9a4f1e4ff --- /dev/null +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57311.java @@ -0,0 +1,11 @@ +class A { + A> foo(){ + return null; + } + + void bar(A x){ + baz(x.foo()); + } + + void baz(A> x){} +} \ 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 36ccc57353d6..8dc13ce718b9 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java @@ -178,6 +178,7 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase { public void testIDEA57307() throws Exception { doTest(true); } public void testIDEA57308() throws Exception { doTest(false); } public void testIDEA57310() throws Exception { doTest(false); } + public void testIDEA57311() 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); }