blob: 6a26e63746b596e4e354f29ebfb6724e19674f71 [file]
// RUN_PIPELINE_TILL: FRONTEND
class A(val next: A? = null) {
val x: String
init {
next?.<!VAL_REASSIGNMENT!>x<!> = "a"
this@A.x = "b"
this.<!VAL_REASSIGNMENT!>x<!> = "c"
<!VAL_REASSIGNMENT!>x<!> = "d" // don't repeat the same diagnostic again with this receiver
this@A.<!VAL_REASSIGNMENT!>x<!> = "e"
next?.<!VAL_REASSIGNMENT!>x<!> = "f"
}
}
/* GENERATED_FIR_TAGS: assignment, classDeclaration, init, nullableType, primaryConstructor, propertyDeclaration,
safeCall, stringLiteral, thisExpression */