blob: c946e9037daaa364df3f23d99edaa494213355e6 [file]
class A(val next: A? = null) {
<!MUST_BE_INITIALIZED_OR_BE_ABSTRACT!>val x: String<!>
init {
next?.<!VAL_REASSIGNMENT!>x<!> = "a"
}
}
class B(val next: B? = null) {
var x: String = next?.x ?: "default" // it's ok to use `x` of next
}