IDEA-79290 Inline Local Variable does not qualify accesses to obscured types

This commit is contained in:
Anna Kozlova
2012-01-25 15:26:11 +04:00
parent 1f551f34bb
commit 608afc659e
4 changed files with 40 additions and 3 deletions
@@ -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());
}
}