testdata for IDEA-57284

This commit is contained in:
anna
2012-10-23 20:26:55 +02:00
parent 2242a0f8d3
commit 32ba5ea18d
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
abstract class A<S> {
abstract <T extends S> void foo();
void bar(A<? super Exception> x){
x.<<error descr="Type parameter 'String[]' is not within its bound; should extend 'capture<? super java.lang.Exception>'">String[]</error>>foo();
}
}

View File

@@ -173,6 +173,7 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
public void testIDEA57264() throws Exception { doTest(false); }
public void testIDEA57315() throws Exception { doTest(false); }
public void testIDEA57346() throws Exception { doTest(false); }
public void testIDEA57284() 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); }