mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
ground type for explicitly typed lambda: add sam to target class substitution (IDEA-166662)
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
import java.util.function.Consumer;
|
||||
|
||||
class Main {
|
||||
|
||||
private static void test() {
|
||||
extendsConsumer((String s) -> {});
|
||||
}
|
||||
|
||||
private static <T> void extendsConsumer(ExtendsConsumer<? super T> c) { }
|
||||
|
||||
interface ExtendsConsumer<T> extends Consumer<T> { }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user