mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
rename: qualify to avoid undiagnosed shadowing ( IDEA-20634 )
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
class A {
|
||||
static class <caret>B {
|
||||
static int x = 42;
|
||||
}
|
||||
}
|
||||
|
||||
public class D {
|
||||
static class C extends A {
|
||||
static int x = 23;
|
||||
|
||||
static int m() {
|
||||
return C.x;
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println(C.m());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user