mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
lambda: treat fields qualified with this as unqualified (IDEA-154174)
This commit is contained in:
+10
@@ -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 = "";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user