mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
lambda: accept? inference variables as target type for lambda expression during lambda constraint reduction (IDEA-136435)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
import java.util.function.Supplier;
|
||||
|
||||
class Test {
|
||||
{
|
||||
Supplier<Runnable> x = foo(() -> () -> {});
|
||||
}
|
||||
|
||||
static <T> Supplier<T> foo(Supplier<T> delegate) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user