[IR] add testdata for dumpKotlinLike
This commit is contained in:
committed by
teamcityserver
parent
d2022ab115
commit
8d5facb15f
+45
@@ -0,0 +1,45 @@
|
||||
fun test(fn: Function0<Unit>, r: Runnable, arr: Array<String>) {
|
||||
foo1(r = local fun <anonymous>() {
|
||||
return Unit
|
||||
}
|
||||
/*-> @FlexibleNullability Runnable? */, strs = arr) /*~> Unit */
|
||||
foo1(r = local fun <anonymous>() {
|
||||
return Unit
|
||||
}
|
||||
/*-> @FlexibleNullability Runnable? */, strs = [*arr]) /*~> Unit */
|
||||
foo1(r = fn /*-> @FlexibleNullability Runnable? */, strs = arr) /*~> Unit */
|
||||
foo1(r = fn /*-> @FlexibleNullability Runnable? */, strs = [*arr]) /*~> Unit */
|
||||
foo1(r = r, strs = [""]) /*~> Unit */
|
||||
foo1(r = fn /*-> @FlexibleNullability Runnable? */, strs = arr) /*~> Unit */
|
||||
foo1(r = fn /*-> @FlexibleNullability Runnable? */, strs = [*arr]) /*~> Unit */
|
||||
foo1(r = r, strs = [*arr]) /*~> Unit */
|
||||
val i1: Test = TODO("IrConstructorCall")
|
||||
val i2: Test = TODO("IrConstructorCall")
|
||||
val i3: Test = TODO("IrConstructorCall")
|
||||
val i4: Test = TODO("IrConstructorCall")
|
||||
val i5: Test = TODO("IrConstructorCall")
|
||||
val i6: Test = TODO("IrConstructorCall")
|
||||
i1.foo2(r1 = local fun <anonymous>() {
|
||||
return Unit
|
||||
}
|
||||
/*-> @FlexibleNullability Runnable? */, r2 = local fun <anonymous>() {
|
||||
return Unit
|
||||
}
|
||||
/*-> @FlexibleNullability Runnable? */, strs = arr) /*~> Unit */
|
||||
i1.foo2(r1 = r, r2 = local fun <anonymous>() {
|
||||
return Unit
|
||||
}
|
||||
/*-> @FlexibleNullability Runnable? */, strs = [""]) /*~> Unit */
|
||||
i1.foo2(r1 = local fun <anonymous>() {
|
||||
return Unit
|
||||
}
|
||||
/*-> @FlexibleNullability Runnable? */, r2 = local fun <anonymous>() {
|
||||
return Unit
|
||||
}
|
||||
/*-> @FlexibleNullability Runnable? */, strs = [*arr]) /*~> Unit */
|
||||
i1.foo2(r1 = r, r2 = local fun <anonymous>() {
|
||||
return Unit
|
||||
}
|
||||
/*-> @FlexibleNullability Runnable? */, strs = [*arr]) /*~> Unit */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user