Generate delegating constructor calls as IrDelegatingConstructorCall expressions

(they have different platform-level representation in JVM and JS).
This commit is contained in:
Dmitry Petrov
2016-08-30 11:02:54 +03:00
committed by Dmitry Petrov
parent 6fbac2ed40
commit a6bee7a22b
22 changed files with 224 additions and 142 deletions
@@ -0,0 +1,8 @@
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)
}