ensure method, imported statically, is not hidden by a local one (IDEA-175967)

This commit is contained in:
Anna.Kozlova
2017-07-18 13:41:10 +02:00
parent 6c88673101
commit 01e64268f9
4 changed files with 64 additions and 5 deletions

View File

@@ -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) {}
}
}

View File

@@ -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) {}
}
}