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

55 lines
555 B
Kotlin
Vendored

class Test1 {
val x: Int
field = x
get
val y: Int
field = y
get
constructor(x: Int, y: Int) /* primary */ {
super/*Any*/()
/* <init>() */
}
}
class Test2 {
val y: Int
field = y
get
val x: Int
field = x
get
constructor(x: Int, y: Int) /* primary */ {
super/*Any*/()
/* <init>() */
}
}
class Test3 {
val y: Int
field = y
get
val x: Int
get
init {
<this>.#x = x
}
constructor(x: Int, y: Int) /* primary */ {
super/*Any*/()
/* <init>() */
}
}