new inference: don't push resolved vars in case of failed substitution

This commit is contained in:
Anna Kozlova
2015-11-24 10:30:21 +01:00
parent 138bd5a034
commit 49dfdded70
25 changed files with 240 additions and 240 deletions
@@ -2,6 +2,6 @@ class A<K> {
<S, T extends A<S>> void foo(A<? extends T> x){}
void bar(A<A<?>> x){
<error descr="Inferred type 'A<?>' for type parameter 'T' is not within its bound; should extend 'A<java.lang.Object>'">foo(x)</error>;
foo<error descr="'foo(A<? extends T>)' in 'A' cannot be applied to '(A<A<?>>)'">(x)</error>;
}
}