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