mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
java inference: proceed with nested inference for lambda parameter type detection (IDEA-219330)
GitOrigin-RevId: f0a4862b94f9cff4c88b1f56425663bbd8659d7a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3e43560a30
commit
8777687e32
@@ -0,0 +1,25 @@
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Map;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Collector;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
class MyTest {
|
||||
{
|
||||
Collector<String, Object, Map<String, String>> collector = Collectors.collectingAndThen(
|
||||
toMap(
|
||||
a -> <caret>a,
|
||||
b -> b
|
||||
),
|
||||
m -> m
|
||||
);
|
||||
}
|
||||
|
||||
private static <T, K, U> Collector<T, ?, Map<K, U>> toMap(
|
||||
Function<? super T, ? extends K> keyMapper,
|
||||
Function<? super T, ? extends U> valueMapper
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user