From ac1865fbc276971e07756743da75a6d5777250b7 Mon Sep 17 00:00:00 2001 From: anna Date: Tue, 23 Oct 2012 19:12:21 +0200 Subject: [PATCH] testdata for IDEA-57485 --- .../genericsHighlighting/IDEA57485.java | 9 +++++++++ .../codeInsight/daemon/GenericsHighlightingTest.java | 1 + 2 files changed, 10 insertions(+) create mode 100644 java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57485.java diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57485.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57485.java new file mode 100644 index 000000000000..0fceb69fc341 --- /dev/null +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/genericsHighlighting/IDEA57485.java @@ -0,0 +1,9 @@ +abstract class A{ + abstract , T extends Number & Comparable> T foo( + Comparable x, + Comparable y); + + { + foo(1, 1L); + } +} \ 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 a4ef09046d57..a7f8688e4bd6 100644 --- a/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java +++ b/java/java-tests/testSrc/com/intellij/codeInsight/daemon/GenericsHighlightingTest.java @@ -163,6 +163,7 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase { public void testIDEA57410() throws Exception { doTest(false); } public void testIDEA57411() throws Exception { doTest(false); } public void testIDEA57484() throws Exception { doTest(false); } + public void testIDEA57485() 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); }