mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
new inference: reduce additional constraints order fixed
This commit is contained in:
+14
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user