Files
kotlin-fork/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.kt
T
Dmitry Petrov a6bee7a22b Generate delegating constructor calls as IrDelegatingConstructorCall expressions
(they have different platform-level representation in JVM and JS).
2016-10-18 09:08:39 +03:00

8 lines
246 B
Kotlin
Vendored

open class Base(val x: Int, val y: Int)
class Test1(xx: Int, yy: Int) : Base(y = yy, x = xx)
class Test2 : Base {
constructor(xx: Int, yy: Int) : super(y = yy, x = xx)
constructor(xxx: Int, yyy: Int, a: Any) : this(yy = yyy, xx = xxx)
}