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
@@ -13,7 +13,7 @@ class Foo<R> {
public void foo() {
reduce(Moo::new);
<error descr="Inferred type 'Foo<R>.AMoo' for type parameter 'S' is not within its bound; should implement 'Foo.ASink<java.lang.Object,Foo<R>.AMoo>'">reduce(AMoo::new)</error>;
reduce(<error descr="Cyclic inference">AMoo::new</error>);
reduce(AAMoo::new);
reduce(AAAMoo::new);
}