mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
overload resolution: symmetry (IDEA-143310)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
package pck;
|
||||
public class A {
|
||||
static void bar(Object a) {
|
||||
System.out.println("A");
|
||||
}
|
||||
}
|
||||
class B {
|
||||
static void bar(Object a) {
|
||||
System.out.println("B");
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package pck;
|
||||
import static pck.A.*;
|
||||
import static pck.B.*;
|
||||
|
||||
class Test {
|
||||
public static void main(String[] args) {
|
||||
bar<error descr="Ambiguous method call: both 'A.bar(Object)' and 'B.bar(Object)' match">("")</error>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user