[IR] update testdata

This commit is contained in:
Zalim Bashorov
2020-11-05 23:40:21 +03:00
committed by teamcityserver
parent 6a1ab1b325
commit fc5c674c60
94 changed files with 354 additions and 354 deletions
@@ -1,6 +1,6 @@
fun f(x: Any): String {
when {
x is A<*> -> { //BLOCK
x is A<*> -> { // BLOCK
return x /*as A<T> */.call(block = local fun <anonymous>(y: Any?): @FlexibleNullability String? {
return "OK"
}
@@ -1,6 +1,6 @@
fun test1(a: Function0<Unit>) {
when {
a is Runnable -> { //BLOCK
a is Runnable -> { // BLOCK
runStatic(r = a /*as Runnable */)
}
}
@@ -8,7 +8,7 @@ fun test1(a: Function0<Unit>) {
fun test2(a: Function0<Unit>) {
when {
a is Runnable -> { //BLOCK
a is Runnable -> { // BLOCK
TODO("IrConstructorCall").run1(r = a /*as Runnable */)
}
}
@@ -16,7 +16,7 @@ fun test2(a: Function0<Unit>) {
fun test3(a: Function0<Unit>) {
when {
a is Runnable -> { //BLOCK
a is Runnable -> { // BLOCK
TODO("IrConstructorCall").run2(r1 = a /*as Runnable */, r2 = a /*as Runnable */)
}
}
@@ -24,7 +24,7 @@ fun test3(a: Function0<Unit>) {
fun test4(a: Function0<Unit>, b: Function0<Unit>) {
when {
a is Runnable -> { //BLOCK
a is Runnable -> { // BLOCK
TODO("IrConstructorCall").run2(r1 = a /*-> @FlexibleNullability Runnable? */, r2 = b /*-> @FlexibleNullability Runnable? */)
}
}
@@ -32,7 +32,7 @@ fun test4(a: Function0<Unit>, b: Function0<Unit>) {
fun test5(a: Any) {
when {
a is Runnable -> { //BLOCK
a is Runnable -> { // BLOCK
TODO("IrConstructorCall").run1(r = a /*as Runnable */)
}
}
@@ -40,7 +40,7 @@ fun test5(a: Any) {
fun test5x(a: Any) {
when {
a is Runnable -> { //BLOCK
a is Runnable -> { // BLOCK
a as Function0<Unit> /*~> Unit */
TODO("IrConstructorCall").run1(r = a /*as Runnable */)
}