[IR] update testdata: better support for IrConstructorCall

This commit is contained in:
Zalim Bashorov
2020-11-06 01:22:57 +03:00
committed by teamcityserver
parent 197f5ca885
commit 2a19dc32f2
70 changed files with 172 additions and 136 deletions
@@ -13,12 +13,36 @@ fun test(fn: Function0<Unit>, r: Runnable, arr: Array<String>) {
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")
val i1: Test = Test(r = local fun <anonymous>() {
return Unit
}
/*-> @FlexibleNullability Runnable? */, strs = arr)
val i2: Test = Test(r = local fun <anonymous>() {
return Unit
}
/*-> @FlexibleNullability Runnable? */, strs = [*arr])
val i3: Test = Test(r1 = local fun <anonymous>() {
return Unit
}
/*-> @FlexibleNullability Runnable? */, r2 = local fun <anonymous>() {
return Unit
}
/*-> @FlexibleNullability Runnable? */, strs = arr)
val i4: Test = Test(r1 = r, r2 = local fun <anonymous>() {
return Unit
}
/*-> @FlexibleNullability Runnable? */, strs = [""])
val i5: Test = Test(r1 = local fun <anonymous>() {
return Unit
}
/*-> @FlexibleNullability Runnable? */, r2 = local fun <anonymous>() {
return Unit
}
/*-> @FlexibleNullability Runnable? */, strs = [*arr])
val i6: Test = Test(r1 = r, r2 = local fun <anonymous>() {
return Unit
}
/*-> @FlexibleNullability Runnable? */, strs = [*arr])
i1.foo2(r1 = local fun <anonymous>() {
return Unit
}