mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
lambda return type checks: consider void-compatible/value-compatible block
This commit is contained in:
+5
@@ -13,5 +13,10 @@ class Ambiguity1 {
|
||||
|
||||
{
|
||||
m<error descr="Ambiguous method call: both 'Ambiguity1.m(I1)' and 'Ambiguity1.m(I2<Object>)' match">(()->{throw new AssertionError();})</error>;
|
||||
m(() -> {});
|
||||
m(() -> {
|
||||
if (false) return;
|
||||
throw new RuntimeException();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user