02e327277e
In this commit reporting on member properties in init section of class is not supported (see KT-55528) ^KT-55493 Fixed
32 lines
472 B
Kotlin
Vendored
32 lines
472 B
Kotlin
Vendored
// ISSUE: KT-55493
|
|
// WITH_STDLIB
|
|
|
|
val Some.z: String
|
|
get() = "ok"
|
|
|
|
class Some {
|
|
val x: String
|
|
val y: String
|
|
|
|
init {
|
|
x = "ok"
|
|
x = "error"
|
|
<!VAL_REASSIGNMENT!>z<!> = "error"
|
|
}
|
|
|
|
val a: String = run {
|
|
x = "error"
|
|
y = "ok"
|
|
y = "error"
|
|
<!VAL_REASSIGNMENT!>z<!> = "error"
|
|
"hello"
|
|
}
|
|
|
|
init {
|
|
x = "error"
|
|
y = "error"
|
|
<!VAL_REASSIGNMENT!>z<!> = "error"
|
|
}
|
|
}
|
|
|