mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
method references: show candidates if overload resolution failed (IDEA-148974)
This commit is contained in:
@@ -38,7 +38,7 @@ class MyTest1 {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
call<error descr="Ambiguous method call: both 'MyTest1.call(int, I1)' and 'MyTest1.call(int, I2)' match">(1, MyTest1::m)</error>;
|
||||
call(1, MyTest1::<error descr="Cannot resolve method 'm'">m</error>);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -192,6 +192,6 @@ class MyTest9 {
|
||||
|
||||
void test() {
|
||||
g1(MyTest9::m);
|
||||
g2<error descr="Ambiguous method call: both 'MyTest9.g2(I1)' and 'MyTest9.g2(I2)' match">(MyTest9::m)</error>;
|
||||
g2(MyTest9::<error descr="Cannot resolve method 'm'">m</error>);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user