mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-15 05:43:47 +07:00
more specific method should be chosen before static access is checked (IDEA-101480)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
class Foo {
|
||||
public void foo() {}
|
||||
|
||||
public static void foo(String... s){}
|
||||
}
|
||||
|
||||
class A {
|
||||
{
|
||||
Foo.<error descr="Non-static method 'foo()' cannot be referenced from a static context">foo</error>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user