lambda: treat fields qualified with this as unqualified (IDEA-154174)

This commit is contained in:
Anna.Kozlova
2016-04-05 18:27:32 +02:00
parent 512341e08a
commit 2e3c2261ad
2 changed files with 19 additions and 1 deletions
@@ -89,3 +89,13 @@ class TestAnonymousWithRefToTheTopLevelUninitializedField {
}
class TestThisQualified {
final String s;
final Runnable r = () -> System.out.println(<error descr="Variable 'this.s' might not have been initialized">this.s</error>.length());
final Runnable r2 = () -> System.out.println(this.r2);
public TestThisQualified() {
s = "";
}
}