mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
[java] [overload resolution] actively prune lambdas with wrong number of parameters (IDEA-279558)
GitOrigin-RevId: e6fdb4b920ec38c8f51cef14c33bc2c26321dd09
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6698b10397
commit
1b3bddda3b
@@ -0,0 +1,17 @@
|
||||
package p;
|
||||
|
||||
import java.util.function.BiFunction;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
class MyTest {
|
||||
void m(Predicate<String> p) {}
|
||||
void m(BiFunction<String, Integer, String> f) {}
|
||||
|
||||
{
|
||||
m((s, i) -> {//m should be resolved here
|
||||
if (s.equals("a")) {
|
||||
|
||||
}
|
||||
<error descr="Missing return statement">}</error>);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user