mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
qualify conflicting fields name (IDEA-123969)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
class A {
|
||||
private final int aField = 1;
|
||||
|
||||
class B {
|
||||
|
||||
public final int aField = 2;
|
||||
|
||||
int method() {
|
||||
return A.this.aField + aField;
|
||||
}
|
||||
}
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
class A {
|
||||
private final int aField = 1;
|
||||
|
||||
class B {
|
||||
|
||||
public final int aField = 2;
|
||||
|
||||
int method() {
|
||||
return A.this.aField + aField;
|
||||
}
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
class A {
|
||||
private final int aField = 1;
|
||||
|
||||
class B {
|
||||
|
||||
int method() {
|
||||
return aField + <selection>2</selection>;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
class A {
|
||||
private final int aField = 1;
|
||||
|
||||
class B {
|
||||
|
||||
int method() {
|
||||
int <selection>i</selection> = 2;
|
||||
return aField + i;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user