[IR] add testdata for dumpKotlinLike

This commit is contained in:
Zalim Bashorov
2020-11-05 02:47:53 +03:00
committed by teamcityserver
parent d2022ab115
commit 8d5facb15f
365 changed files with 15516 additions and 0 deletions
@@ -0,0 +1,41 @@
operator fun Any.plusAssign(lambda: Function0<Unit>) {
}
operator fun Any.get(index: Function0<Unit>): Int {
return 42
}
operator fun Any.set(index: Function0<Unit>, value: Int) {
}
fun test1(a: Any) {
plusAssign($receiver = a, lambda = local fun <anonymous>() {
return Unit
}
)
}
fun test2(a: Any) {
{ //BLOCK
val tmp0_array: Any = a
val tmp1_index0: Function0<Unit> = local fun <anonymous>() {
return Unit
}
set($receiver = tmp0_array, index = tmp1_index0, value = get($receiver = tmp0_array, index = tmp1_index0).plus(other = 42))
}
}
fun test3(a: Any) {
{ //BLOCK
val tmp0_array: Any = a
val tmp1_index0: Function0<Unit> = local fun <anonymous>() {
return Unit
}
val tmp2: Int = get($receiver = tmp0_array, index = tmp1_index0)
set($receiver = tmp0_array, index = tmp1_index0, value = tmp2.inc())
tmp2
} /*~> Unit */
}