new inference: stop inference if false was inferred

This commit is contained in:
Anna Kozlova
2014-02-12 09:46:33 +01:00
parent b5e1b382c8
commit 021c0c891e
17 changed files with 101 additions and 73 deletions
@@ -2,6 +2,6 @@ class A<T> {
<T extends A<T>> void foo(T x){}
void bar(A<?> x){
<error descr="Inferred type 'A<capture<?>>' for type parameter 'T' is not within its bound; should extend 'A<A<capture<?>>>'">foo(x)</error>;
foo<error descr="'foo(T)' in 'A' cannot be applied to '(A<capture<?>>)'">(x)</error>;
}
}