[IR] update testdata: better support for IrConstructorCall
This commit is contained in:
committed by
teamcityserver
parent
197f5ca885
commit
2a19dc32f2
+9
-9
@@ -9,7 +9,7 @@ fun test1(a: Function0<Unit>) {
|
||||
fun test2(a: Function0<Unit>) {
|
||||
when {
|
||||
a is Runnable -> { // BLOCK
|
||||
TODO("IrConstructorCall").run1(r = a /*as Runnable */)
|
||||
J().run1(r = a /*as Runnable */)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -17,7 +17,7 @@ fun test2(a: Function0<Unit>) {
|
||||
fun test3(a: Function0<Unit>) {
|
||||
when {
|
||||
a is Runnable -> { // BLOCK
|
||||
TODO("IrConstructorCall").run2(r1 = a /*as Runnable */, r2 = a /*as Runnable */)
|
||||
J().run2(r1 = a /*as Runnable */, r2 = a /*as Runnable */)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -25,7 +25,7 @@ fun test3(a: Function0<Unit>) {
|
||||
fun test4(a: Function0<Unit>, b: Function0<Unit>) {
|
||||
when {
|
||||
a is Runnable -> { // BLOCK
|
||||
TODO("IrConstructorCall").run2(r1 = a /*-> @FlexibleNullability Runnable? */, r2 = b /*-> @FlexibleNullability Runnable? */)
|
||||
J().run2(r1 = a /*-> @FlexibleNullability Runnable? */, r2 = b /*-> @FlexibleNullability Runnable? */)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -33,7 +33,7 @@ fun test4(a: Function0<Unit>, b: Function0<Unit>) {
|
||||
fun test5(a: Any) {
|
||||
when {
|
||||
a is Runnable -> { // BLOCK
|
||||
TODO("IrConstructorCall").run1(r = a /*as Runnable */)
|
||||
J().run1(r = a /*as Runnable */)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -42,26 +42,26 @@ fun test5x(a: Any) {
|
||||
when {
|
||||
a is Runnable -> { // BLOCK
|
||||
a as Function0<Unit> /*~> Unit */
|
||||
TODO("IrConstructorCall").run1(r = a /*as Runnable */)
|
||||
J().run1(r = a /*as Runnable */)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun test6(a: Any) {
|
||||
a as Function0<Unit> /*~> Unit */
|
||||
TODO("IrConstructorCall").run1(r = a /*as Function0<Unit> */ /*-> @FlexibleNullability Runnable? */)
|
||||
J().run1(r = a /*as Function0<Unit> */ /*-> @FlexibleNullability Runnable? */)
|
||||
}
|
||||
|
||||
fun test7(a: Function1<Int, Int>) {
|
||||
a as Function0<Unit> /*~> Unit */
|
||||
TODO("IrConstructorCall").run1(r = a /*as Function0<Unit> */ /*-> @FlexibleNullability Runnable? */)
|
||||
J().run1(r = a /*as Function0<Unit> */ /*-> @FlexibleNullability Runnable? */)
|
||||
}
|
||||
|
||||
fun test8(a: Function0<Unit>) {
|
||||
TODO("IrConstructorCall").run1(r = id<@FlexibleNullability Function0<Unit>?>(x = a) /*!! Function0<Unit> */ /*-> @FlexibleNullability Runnable? */)
|
||||
J().run1(r = id<@FlexibleNullability Function0<Unit>?>(x = a) /*!! Function0<Unit> */ /*-> @FlexibleNullability Runnable? */)
|
||||
}
|
||||
|
||||
fun test9() {
|
||||
TODO("IrConstructorCall").run1(r = ::test9 /*-> @FlexibleNullability Runnable? */)
|
||||
J().run1(r = ::test9 /*-> @FlexibleNullability Runnable? */)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user