mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
most specific check: accept lambdas when target type is type parameter (IDEA-124725)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import java.util.function.Supplier;
|
||||
|
||||
class Test {
|
||||
|
||||
public static void main(String... args) {
|
||||
c<error descr="Cannot resolve method 'c(<lambda expression>, <lambda expression>)'">(() -> 3, () -> 10)</error>;
|
||||
}
|
||||
|
||||
public static <T> void c(Supplier<T> s1, Supplier<T> s2) {}
|
||||
public static <T> void c(Supplier<T> s1, T value) {}
|
||||
}
|
||||
Reference in New Issue
Block a user