fc8d0e3ee0
Currently VAL_REASSIGNMENT are only reported on direct assignments. Reassignments in the form of, for example, `+=` are reported as `VARIABLE_EXPECTED`, which differs from FE1.0.
11 lines
178 B
Kotlin
Vendored
11 lines
178 B
Kotlin
Vendored
var x: Int = 1
|
|
set(value) {
|
|
field += value
|
|
}
|
|
|
|
val y: Int = 1
|
|
get() {
|
|
<!VAL_REASSIGNMENT_VIA_BACKING_FIELD_ERROR!>field<!> += 1
|
|
return 1
|
|
}
|