testdata for IDEA-57495

This commit is contained in:
anna
2012-10-23 19:18:55 +02:00
parent c4b1b83089
commit 26378d1212
2 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import java.util.*;
interface C<T> extends List<List<T>>{}
abstract class A {
abstract <T> T baz(List<? super List<? super T>> a);
void bar(C<?> x){
baz<error descr="'baz(java.util.List<? super java.util.List<? super java.lang.Object>>)' in 'A' cannot be applied to '(C<capture<?>>)'">(x)</error>;
}
}

View File

@@ -167,6 +167,7 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
public void testIDEA57486() throws Exception { doTest(false); }
public void testIDEA57492() throws Exception { doTest(false); }
public void testIDEA57493() throws Exception { doTest(false); }
public void testIDEA57495() 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); }