new inference: reduce additional constraints order fixed

This commit is contained in:
Anna Kozlova
2014-01-29 11:52:11 +04:00
parent 4c7fec722f
commit aa04a46498
4 changed files with 26 additions and 10 deletions
@@ -0,0 +1,14 @@
import java.util.List;
import java.util.function.BinaryOperator;
import java.util.function.Function;
public class FooBar<K> {
void foo(List<K > s) {}
<T, U> List<T> bar(BinaryOperator<U> kk, Function<T, U> f){
return null;
}
void f(FooBar<Integer> integerFooBar){
integerFooBar.foo(bar((a, b) -> a + b, x -> 1));
}
}