new inference: incorporation step: substitute equal bounds

This commit is contained in:
Anna Kozlova
2014-02-12 09:46:32 +01:00
parent 83d2858c0c
commit b5e1b382c8
3 changed files with 57 additions and 21 deletions
@@ -2,6 +2,6 @@ class A<T> {
<T extends A<T>> void foo(T x){}
void bar(A<?> x){
<error descr="Inferred type 'capture<?>' for type parameter 'T' is not within its bound; should extend 'A<capture<? extends A<capture<?>>>>'">foo(x)</error>;
<error descr="Inferred type 'A<capture<?>>' for type parameter 'T' is not within its bound; should extend 'A<A<capture<?>>>'">foo(x)</error>;
}
}