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
@@ -1,6 +1,6 @@
class D<T> {
void foo(D<?> x){
bar<error descr="'bar(D<?>, D<? super java.lang.Object>)' in 'D' cannot be applied to '(D<capture<?>>, D<capture<?>>)'">(x,x)</error>;
bar<error descr="'bar(D<? extends T>, D<? super T>)' in 'D' cannot be applied to '(D<capture<?>>, D<capture<?>>)'">(x,x)</error>;
}
<T> void bar(D<? extends T> x, D<? super T> y){}
}