[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,46 @@
fun useUnit0(fn: Function0<Unit>) {
}
fun useUnit1(fn: Function1<Int, Unit>) {
}
fun fn0(): Int {
return 1
}
fun fn1(x: Int): Int {
return 1
}
fun fnv(vararg xs: Int): Int {
return 1
}
fun test0() {
return useUnit0(fn = local fun fn0() {
fn0() /*~> Unit */
}
)
}
fun test1() {
return useUnit1(fn = local fun fn1(p0: Int) {
fn1(x = p0) /*~> Unit */
}
)
}
fun testV0() {
return useUnit0(fn = local fun fnv() {
fnv() /*~> Unit */
}
)
}
fun testV1() {
return useUnit1(fn = local fun fnv(p0: Int) {
fnv(xs = [p0]) /*~> Unit */
}
)
}