mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-24 23:41:35 +07:00
ensure method, imported statically, is not hidden by a local one (IDEA-175967)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package foo;
|
||||
|
||||
class Test {
|
||||
|
||||
public void foo() {
|
||||
X.te<caret>st("bla");
|
||||
}
|
||||
|
||||
static class Y {
|
||||
public void foo() {
|
||||
X.test("bla");
|
||||
}
|
||||
|
||||
public void test(int x) {}
|
||||
}
|
||||
|
||||
public static class X {
|
||||
public static void test(String x) {}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package foo;
|
||||
|
||||
import static foo.Test.X.test;
|
||||
|
||||
class Test {
|
||||
|
||||
public void foo() {
|
||||
test("bla");
|
||||
}
|
||||
|
||||
static class Y {
|
||||
public void foo() {
|
||||
X.test("bla");
|
||||
}
|
||||
|
||||
public void test(int x) {}
|
||||
}
|
||||
|
||||
public static class X {
|
||||
public static void test(String x) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user