testdata for IDEA-93713

This commit is contained in:
Anna Kozlova
2015-09-04 14:10:31 +03:00
parent e7973c46ba
commit 05ae98b10d
2 changed files with 19 additions and 0 deletions
@@ -0,0 +1,15 @@
class Bug<A, B extends A> {
<X, Y extends X> void f1(Bug<X, Y> b) {}
void f2(Bug<?, ?> b) {
f1(b);
}
}
class Bug1<A, B> {
<X, Y extends X> void f1(Bug1<X, Y> b) {}
void f2(Bug1<?, ?> b) {
<error descr="Inferred type 'capture<?>' for type parameter 'Y' is not within its bound; should extend 'capture<?>'">f1(b)</error>;
}
}