mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 10:51:25 +07:00
resolve/overload resolution: collect static methods of interface called on foreign class/instance but filter them out during overload resolution (IDEA-145187)
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
interface A {
|
||||
static void foo110() {}
|
||||
}
|
||||
|
||||
abstract class B implements A {
|
||||
static void foo110(String... strs){
|
||||
System.out.println(strs);
|
||||
}
|
||||
static void bar110(){}
|
||||
}
|
||||
|
||||
abstract class C extends B {
|
||||
static void bar110(String... strs){
|
||||
System.out.println(strs);
|
||||
}
|
||||
}
|
||||
|
||||
class D {
|
||||
public static void main(String[] args) {
|
||||
B.foo110();
|
||||
C.bar110();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user