[IR] dumpKotlinLike: add testdata for FIR tests

This commit is contained in:
Zalim Bashorov
2020-11-20 18:18:14 +03:00
committed by teamcityserver
parent d7bd4240e1
commit c68040753d
298 changed files with 12186 additions and 0 deletions
@@ -0,0 +1,29 @@
fun J.test0(a: Runnable) {
runStatic(r = a)
<this>.runIt(r = a)
}
fun test1() {
runStatic(r = local fun <anonymous>() {
test1()
}
/*-> Runnable? */)
}
fun J.test2() {
<this>.runIt(r = local fun <anonymous>() {
test1()
}
/*-> Runnable? */)
}
fun J.test3(a: Function0<Unit>) {
<this>.run2(r1 = a /*-> Runnable? */, r2 = a /*-> Runnable? */)
}
fun J.test4(a: Function0<Unit>, b: Function0<Unit>, flag: Boolean) {
<this>.runIt(r = when {
flag -> a
else -> b
} /*-> Runnable? */)
}