IDEA-156280 Incorrect evaluation inside anonymous class

This commit is contained in:
Egor.Ushakov
2016-05-19 15:01:30 +03:00
parent a12df12875
commit 6297690daf
3 changed files with 37 additions and 2 deletions
@@ -0,0 +1,16 @@
public class AnonField {
private String xxx;
public static void main(String[] args) {
new AnonField().foo();
}
void foo() {
String xxx = "local";
new AnonField() {
@Override
public void foo() {
System.out.println(<ref>xxx);
}
}.foo();
}
}