d9d4dee582
^KT-58346 Fixed Review: https://jetbrains.team/p/kt/reviews/9967 BTW this commit accidentaly and partially fixes KT-57553 for K2, because of a cleaner K2 architecture. I will unify MUST_BE_INITIALIZED behaviour in K1 and K2 in the next commits
19 lines
274 B
Kotlin
Vendored
19 lines
274 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
class TestInitVarFromParameter(var x: Int)
|
|
|
|
class TestInitVarInClass {
|
|
var x = 0
|
|
}
|
|
|
|
class TestInitVarInInitBlock {
|
|
var x: Int
|
|
init {
|
|
x = 0
|
|
}
|
|
}
|
|
|
|
class TestInitVarWithCustomSetter {
|
|
var x = 0
|
|
set(value) { field = value }
|
|
}
|