testdata for IDEA-57387

This commit is contained in:
Anna Kozlova
2015-05-21 10:00:28 +02:00
parent 59f4b04154
commit 819f620cc8
2 changed files with 13 additions and 0 deletions
@@ -0,0 +1,9 @@
class B<T>{}
class A<T extends B<? extends Runnable>> {
void bar(A<? extends B<? extends Cloneable>> a){
<error descr="Inferred type 'B<? extends java.lang.Cloneable>' for type parameter 'T' is not within its bound; should extend 'B<java.lang.Object>'">foo(a)</error>;
}
<S, T extends B<S>> void foo(A<? extends T> a){}
}