From 41636949ad64f5f9545b92cd36ab0e8ec5132c59 Mon Sep 17 00:00:00 2001 From: anna Date: Mon, 22 Oct 2012 19:53:57 +0200 Subject: [PATCH] testdata for IDEA-67681 --- .../genericsHighlighting/IDEA67681.java | 33 +++++++++++++++++++ .../daemon/GenericsHighlightingTest.java | 1 + 2 files changed, 34 insertions(+) create mode 100644 java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA67681.java diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA67681.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA67681.java new file mode 100644 index 000000000000..c1a3b122ce2e --- /dev/null +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA67681.java @@ -0,0 +1,33 @@ + +interface A { } + +class B implements A {} + +class C { + void bar(A> x){ + B> y = (B>) x; + } +} + +//----------------------- +interface A2 { } + +class B2 implements A2 {} + +class C2 { + void bar(A2 x){ + B2> y = (B2>) x; + } +} + +//----------------------- +interface A3 { } + +class B3 implements A3 {} + +class C3 { + void bar(A3> x){ + A3> y = (A3>) 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 55404d58c1ce..ed62423286be 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java @@ -147,6 +147,7 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase { public void testIDEA57340() throws Exception { doTest(false); } public void testIDEA89771() throws Exception { doTest(false); } public void testIDEA89801() throws Exception { doTest(false); } + public void testIDEA67681() 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); }