a856e16d2f
* captured values are stored in corresponding fields before call to super constructor * preserving the order of initializers * tests * refactoring * - test fix - workaround of IR bug * refactoring * review fix
13 lines
134 B
Kotlin
13 lines
134 B
Kotlin
class Test {
|
|
val x: Int
|
|
|
|
init {
|
|
x = 42
|
|
}
|
|
|
|
val y = x
|
|
}
|
|
|
|
fun main(args: Array<String>) {
|
|
println(Test().y)
|
|
} |