Files
kotlin-fork/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.kt.txt
T
2020-11-26 00:14:25 +03:00

46 lines
587 B
Plaintext
Vendored

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