captures: don't distinguish captures from normal types but leave capture for the same type wildcard

This commit is contained in:
Anna Kozlova
2015-06-14 21:51:21 +03:00
parent 163c76b9bd
commit 92b7fa01c4
17 changed files with 43 additions and 46 deletions
@@ -1,6 +1,6 @@
class C<T extends C<? extends C<? extends T>>>{
void foo(C<?> x){
<error descr="Inferred type 'capture<?>' for type parameter 'T' is not within its bound; should extend 'C<capture<?>>'">bar(x)</error>;
<error descr="Inferred type 'capture<?>' for type parameter 'T' is not within its bound; should extend 'C<? extends capture<?>>'">bar(x)</error>;
}
<T extends C<? extends T>> void bar(C<T> x){}
}