mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
new inference: propagate current substitutors during additional constrains processing (IDEA-118965)
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
import java.util.Map;
|
||||
import java.util.function.BinaryOperator;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Collector;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class Bug
|
||||
{
|
||||
|
||||
void foo(Stream<Bug> words){
|
||||
words.collect(toMap(w -> 1, (a, b) -> a + b));
|
||||
}
|
||||
|
||||
public static <T, K, U>
|
||||
Collector<T, ?, Map<K,U>> toMap(Function<Bug, U> valueMapper,
|
||||
BinaryOperator<U> mergeFunction) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user