testdata for IDEA-57308

This commit is contained in:
anna
2012-10-23 21:08:54 +02:00
parent f68fd89bea
commit c7b237eb01
2 changed files with 14 additions and 0 deletions
@@ -0,0 +1,13 @@
class A<T> {}
interface IA{
<T> void foo(A<? extends T[]> x);
}
interface IB{
<T> int foo(A<? extends T> x);
}
class C {
<T extends IA & IB> void bar(T x, A<String[]> y){
<error descr="Incompatible types. Found: 'void', required: 'int'">int z = x.foo(y);</error>
}
}