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