[IR] update testdata: better support for IrConstructorCall

This commit is contained in:
Zalim Bashorov
2020-11-06 01:22:57 +03:00
committed by teamcityserver
parent 197f5ca885
commit 2a19dc32f2
70 changed files with 172 additions and 136 deletions
@@ -40,7 +40,7 @@ class Outer {
fun testConstructor(): Any {
return use(fn = local fun <init>(p0: Int): C {
return TODO("IrConstructorCall")
return C(xs = [p0])
}
)
}
@@ -48,7 +48,7 @@ fun testConstructor(): Any {
fun testInnerClassConstructor(outer: Outer): Any {
return use(fn = { // BLOCK
local fun Outer.<init>(p0: Int): Inner {
return TODO("IrConstructorCall")
return receiver.Inner(xs = [p0])
}
@@ -59,7 +59,7 @@ fun testInnerClassConstructor(outer: Outer): Any {
fun testInnerClassConstructorCapturingOuter(): Any {
return use(fn = { // BLOCK
local fun Outer.<init>(p0: Int): Inner {
return TODO("IrConstructorCall")
return receiver.Inner(xs = [p0])
}