[IR] update testdata: better support for IrCall
This commit is contained in:
committed by
teamcityserver
parent
ef2adfa835
commit
197f5ca885
@@ -1,5 +1,5 @@
|
||||
fun test1(): Int {
|
||||
return run<String, Int>($receiver = "42", block = local fun String.<anonymous>(): Int {
|
||||
return "42".run<String, Int>(block = local fun String.<anonymous>(): Int {
|
||||
return <this>.<get-length>()
|
||||
}
|
||||
)
|
||||
|
||||
@@ -47,7 +47,7 @@ fun test(fooImpl: IFoo, invokeImpl: IInvoke) {
|
||||
with<A, Int>(receiver = A, block = local fun A.<anonymous>(): Int {
|
||||
return with<IFoo, Int>(receiver = fooImpl, block = local fun IFoo.<anonymous>(): Int {
|
||||
return with<IInvoke, Int>(receiver = invokeImpl, block = local fun IInvoke.<anonymous>(): Int {
|
||||
return <this>.invoke($receiver = <this>.<get-foo>($receiver = <this>))
|
||||
return (<this>, (<this>, <this>).<get-foo>()).invoke()
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ fun test3() {
|
||||
}
|
||||
|
||||
fun testLrmFoo1(ints: List<Int>) {
|
||||
forEach<Int>($receiver = ints, action = local fun <anonymous>(it: Int) {
|
||||
ints.forEach<Int>(action = local fun <anonymous>(it: Int) {
|
||||
when {
|
||||
EQEQ(arg0 = it, arg1 = 0) -> return Unit
|
||||
}
|
||||
@@ -40,7 +40,7 @@ fun testLrmFoo1(ints: List<Int>) {
|
||||
}
|
||||
|
||||
fun testLrmFoo2(ints: List<Int>) {
|
||||
forEach<Int>($receiver = ints, action = local fun <anonymous>(it: Int) {
|
||||
ints.forEach<Int>(action = local fun <anonymous>(it: Int) {
|
||||
when {
|
||||
EQEQ(arg0 = it, arg1 = 0) -> return Unit
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user