mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
qualify field access in initializer when shadowed by new declaration (IDEA-173780)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// "Insert '(String)x' declaration" "true"
|
||||
|
||||
class C {
|
||||
Object x = new Object();
|
||||
|
||||
void x() {
|
||||
if (x instanceof String) {
|
||||
String x = (String) this.x;
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Insert '(String)x' declaration" "true"
|
||||
|
||||
class C {
|
||||
Object x = new Object();
|
||||
|
||||
void x() {
|
||||
if (x insta<caret>nceof String) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user