Files
kotlin-fork/compiler/testData/ir/irText/classes/initVal.kt.txt
T
2024-02-16 10:19:38 +00:00

43 lines
460 B
Kotlin
Vendored

class TestInitValFromParameter {
val x: Int
field = x
get
constructor(x: Int) /* primary */ {
super/*Any*/()
/* <init>() */
}
}
class TestInitValInClass {
val x: Int
field = 0
get
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
}
class TestInitValInInitBlock {
val x: Int
get
init {
<this>.#x = 0
}
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
}