mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
new inference: most specific check according to spec, fixed testdata after JDK-8043734
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ class Ambiguity1 {
|
||||
static <T> void m(I2<T> i2) {}
|
||||
|
||||
{
|
||||
m<error descr="Ambiguous method call: both 'Ambiguity1.m(I1)' and 'Ambiguity1.m(I2<Object>)' match">(()->{throw new AssertionError();})</error>;
|
||||
m(()->{throw new AssertionError();});
|
||||
m(() -> {});
|
||||
m(() -> {
|
||||
if (false) return;
|
||||
|
||||
Reference in New Issue
Block a user