new inference: 18.5.2 adjustments

This commit is contained in:
Anna Kozlova
2014-02-19 09:46:15 +01:00
parent 61039804a9
commit bd681beb26
34 changed files with 125 additions and 91 deletions
@@ -2,6 +2,6 @@ class A<T> {
<T extends A<T>> void foo(T x){}
void bar(A<?> x){
foo<error descr="'foo(T)' in 'A' cannot be applied to '(A<capture<?>>)'">(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>;
}
}