new inference: check equals/upper/low bounds consistency

This commit is contained in:
Anna Kozlova
2015-05-29 14:48:27 +02:00
parent 8164a3e4b7
commit 7b0c5b6d05
10 changed files with 44 additions and 49 deletions
@@ -7,9 +7,9 @@ class B<T> extends A<A<T>> {
foo(sb);
foo(s);
<error descr="Inferred type 'capture<?>' for type parameter 'T' is not within its bound; should extend 'java.lang.String'">foo1(b)</error>;
foo1<error descr="'foo1(A<A<T>>)' in 'B' cannot be applied to '(B<capture<?>>)'">(b)</error>;
foo1(eb);
<error descr="Inferred type 'capture<? super java.lang.String>' for type parameter 'T' is not within its bound; should extend 'java.lang.String'">foo1(sb)</error>;
foo1<error descr="'foo1(A<A<T>>)' in 'B' cannot be applied to '(B<capture<? super java.lang.String>>)'">(sb)</error>;
foo1(s);
foo2(b);