testdata for IDEA-57307

This commit is contained in:
anna
2012-10-23 21:08:53 +02:00
parent 288bf9d6ef
commit f68fd89bea
2 changed files with 11 additions and 0 deletions
@@ -0,0 +1,10 @@
class C<<warning descr="Type parameter 'T' is never used">T</warning>>{}
class A<<warning descr="Type parameter 'S' is never used">S</warning>,<warning descr="Type parameter 'T' is never used">T</warning>> {}
class B<S,T extends C<S>> extends A<S,T> {
void foo(B<?,?> x){
bar(x);
}
<S, T> void bar(A<S,T> x){
System.out.println(x);
}
}
@@ -175,6 +175,7 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
public void testIDEA57346() throws Exception { doTest(false); }
public void testIDEA57284() throws Exception { doTest(false); }
public void testIDEA57286() throws Exception { doTest(false); }
public void testIDEA57307() throws Exception { doTest(true); }
public void testInconvertibleTypes() throws Exception { doTest(false); }
public void testIncompatibleReturnType() throws Exception { doTest(false); }
public void testContinueInferenceAfterFirstRawResult() throws Exception { doTest(false); }