From 64ae8e711e1e738a4fa80cb0b1e6e8db32493c93 Mon Sep 17 00:00:00 2001 From: anna Date: Tue, 23 Oct 2012 17:37:18 +0200 Subject: [PATCH] testdata for IDEA-57667 --- .../daemonCodeAnalyzer/genericsHighlighting/IDEA57667.java | 7 +++++++ .../codeInsight/daemon/GenericsHighlightingTest.java | 1 + 2 files changed, 8 insertions(+) create mode 100644 java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57667.java diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57667.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57667.java new file mode 100644 index 000000000000..9f27fa0f14d4 --- /dev/null +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57667.java @@ -0,0 +1,7 @@ +class A { + A(T x) {} + + { + new <String>A(1); + } +} \ 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 1e3dbdbcc266..54887ebb96f9 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java @@ -152,6 +152,7 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase { public void testIDEA67681() throws Exception { doTest(false); } public void testIDEA67599() throws Exception { doTest(false); } public void testIDEA57668() throws Exception { doTest(false); } + public void testIDEA57667() 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); }