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

40 lines
518 B
Kotlin
Vendored

open class Base {
val x: Int
field = x
get
val y: Int
field = y
get
constructor(x: Int, y: Int) /* primary */ {
super/*Any*/()
/* <init>() */
}
}
class Test1 : Base {
constructor(xx: Int, yy: Int) /* primary */ {
super/*Base*/(x = xx, y = yy)
/* <init>() */
}
}
class Test2 : Base {
constructor(xx: Int, yy: Int) {
super/*Base*/(x = xx, y = yy)
/* <init>() */
}
constructor(xxx: Int, yyy: Int, a: Any) {
this/*Test2*/(xx = xxx, yy = yyy)
}
}