[FIR] Report VAL_REASSIGNMENT on assign to non-local vals
In this commit reporting on member properties in init section of class is not supported (see KT-55528) ^KT-55493 Fixed
This commit is contained in:
committed by
Space Team
parent
e87a064cdd
commit
02e327277e
@@ -11,14 +11,14 @@ class C() : B() {
|
||||
this.x = 34
|
||||
this.b = 123
|
||||
super.b = 23
|
||||
this.c = 34
|
||||
super.c = 3535 //repeat for 'c'
|
||||
this.<!VAL_REASSIGNMENT!>c<!> = 34
|
||||
super.<!VAL_REASSIGNMENT!>c<!> = 3535 //repeat for 'c'
|
||||
|
||||
<!VARIABLE_EXPECTED!>getInt()<!> = 12
|
||||
}
|
||||
|
||||
fun foo1(c: C) {
|
||||
super.c = 34
|
||||
super.<!VAL_REASSIGNMENT!>c<!> = 34
|
||||
}
|
||||
|
||||
fun bar(c: C) {
|
||||
|
||||
Reference in New Issue
Block a user