mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
new inference: propagate inference variables from grand ~parents calls
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
|
||||
import java.util.function.Function;
|
||||
import java.util.function.Supplier;
|
||||
import java.util.stream.Collector;
|
||||
import java.util.stream.Stream;
|
||||
import java.util.*;
|
||||
|
||||
public class X1 {
|
||||
void test(Stream<Integer> stream) {
|
||||
Function<List<Integer>, List<Integer>> unmodifiableList = Collections::unmodifiableList;
|
||||
stream.collect(collectingAndThen(toList(), unmodifiableList)).remove(0);
|
||||
}
|
||||
|
||||
public static<T,A1,R,RR> Collector<T,A1,RR> collectingAndThen(Collector<T,A1,R> downstream,
|
||||
Function<R,RR> finisher) {
|
||||
return null;
|
||||
}
|
||||
|
||||
static <T> Collector<T, ?, List<T>> toList() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user