mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
new inference: stop collecting constraints if target type is proper (IDEA-136412)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
class Test {
|
||||
private List<Map<String, String>> foo(Stream<Map.Entry<String, List<String>>> stream) {
|
||||
return then(v -> stream.collect(Collectors.toMap(Map.Entry::getKey, e -> e.getValue().toString())));
|
||||
}
|
||||
|
||||
private <V> List<V> then(Function<Void, V> f) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user