mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
inference: register nested sessions for void compatible lambdas (IDEA-207070)
GitOrigin-RevId: 77f740e2754917b0053fcb79fb56e2b0c62436f4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
bff61142a8
commit
81a13b0fc0
+20
@@ -0,0 +1,20 @@
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.function.Function;
|
||||
|
||||
class MyTest {
|
||||
|
||||
{
|
||||
foo(() -> build(id(x -> x)));
|
||||
}
|
||||
|
||||
static <I> I id(I i) {
|
||||
return i;
|
||||
}
|
||||
static <K> void foo(Runnable e) {}
|
||||
|
||||
static <TT> List<TT> build(Function<String, TT> transformers) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user