mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-79290 Inline Local Variable does not qualify accesses to obscured types
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
public class A {
|
||||
int f = 23;
|
||||
|
||||
static class B {
|
||||
static int f = 42;
|
||||
}
|
||||
|
||||
int foo() {
|
||||
int r = B.f;
|
||||
A B = this;
|
||||
return r<caret>;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println(new A().foo());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
public class A {
|
||||
int f = 23;
|
||||
|
||||
static class B {
|
||||
static int f = 42;
|
||||
}
|
||||
|
||||
int foo() {
|
||||
A B = this;
|
||||
return A.B.f;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println(new A().foo());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user