testdata for IDEA-67681

This commit is contained in:
anna
2012-10-22 21:10:49 +02:00
parent ac942146c5
commit 41636949ad
2 changed files with 34 additions and 0 deletions
@@ -0,0 +1,33 @@
interface A<T> { }
class B<T> implements A<T> {}
class C {
void bar(A<A<?>> x){
B<A<String>> y = <error descr="Inconvertible types; cannot cast 'A<A<?>>' to 'B<A<java.lang.String>>'">(B<A<String>>) x</error>;
}
}
//-----------------------
interface A2<T> { }
class B2<T> implements A2<T> {}
class C2 {
void bar(A2<A2> x){
B2<A2<?>> y = <error descr="Inconvertible types; cannot cast 'A2<A2>' to 'B2<A2<?>>'">(B2<A2<?>>) x</error>;
}
}
//-----------------------
interface A3<T> { }
class B3<T> implements A3<T> {}
class C3 {
<T> void bar(A3<A3<T>> x){
A3<A3<?>> y = <error descr="Inconvertible types; cannot cast 'A3<A3<T>>' to 'A3<A3<?>>'">(A3<A3<?>>) x</error>;
}
}
@@ -147,6 +147,7 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
public void testIDEA57340() throws Exception { doTest(false); }
public void testIDEA89771() throws Exception { doTest(false); }
public void testIDEA89801() throws Exception { doTest(false); }
public void testIDEA67681() 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); }