mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 11:00:04 +07:00
isApplicability check based on pertinentToApplicability
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ class MS {
|
||||
|
||||
void test(boolean cond) {
|
||||
m(cond ? () -> 26 : () -> 24);
|
||||
<error descr="Cannot resolve method 'm(?)'">m</error>(cond ? () -> 26 : () -> new Integer(42));
|
||||
<error descr="Ambiguous method call: both 'MS.m(GetInt)' and 'MS.m(GetInteger)' match">m</error>(cond ? () -> 26 : () -> new Integer(42));
|
||||
m(cond ? () -> new Integer(26) : () -> new Integer(42));
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ import java.util.function.Supplier;
|
||||
class Test {
|
||||
|
||||
public static void main(String... args) {
|
||||
<error descr="Cannot resolve method 'c(<lambda expression>, <lambda expression>)'">c</error>(() -> 3, () -> 10);
|
||||
<error descr="Ambiguous method call: both 'Test.c(Supplier<Integer>, Supplier<Integer>)' and 'Test.c(Supplier<T>, T)' match">c</error>(() -> 3, () -> 10);
|
||||
}
|
||||
|
||||
public static <T> void c(Supplier<T> s1, Supplier<T> s2) {}
|
||||
|
||||
Reference in New Issue
Block a user