diff --git a/compiler/testData/ir/irText/expressions/whenReturnUnit.fir.txt b/compiler/testData/ir/irText/expressions/whenReturnUnit.fir.txt deleted file mode 100644 index cbeb296f25d..00000000000 --- a/compiler/testData/ir/irText/expressions/whenReturnUnit.fir.txt +++ /dev/null @@ -1,27 +0,0 @@ -FILE fqName: fileName:/whenReturnUnit.kt - FUN name:run visibility:public modality:FINAL <> (block:kotlin.Function0) returnType:kotlin.Unit - VALUE_PARAMETER name:block index:0 type:kotlin.Function0 - BLOCK_BODY - FUN name:branch visibility:public modality:FINAL <> (x:kotlin.Int) returnType:kotlin.Unit - VALUE_PARAMETER name:x index:0 type:kotlin.Int - BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun branch (x: kotlin.Int): kotlin.Unit declared in ' - CALL 'public final fun run (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null - block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA - FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit - BLOCK_BODY - BLOCK type=kotlin.Unit origin=WHEN - VAR IR_TEMPORARY_VARIABLE name:tmp0_subject type:kotlin.Int [val] - WHEN type=kotlin.Unit origin=WHEN - BRANCH - if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Int [val] declared in .branch.' type=kotlin.Int origin=null - arg1: CONST Int type=kotlin.Int value=1 - then: CALL 'public final fun TODO (reason: kotlin.String): kotlin.Nothing [inline] declared in kotlin' type=kotlin.Nothing origin=null - reason: CONST String type=kotlin.String value="1" - BRANCH - if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp0_subject: kotlin.Int [val] declared in .branch.' type=kotlin.Int origin=null - arg1: CONST Int type=kotlin.Int value=2 - then: CALL 'public final fun TODO (reason: kotlin.String): kotlin.Nothing [inline] declared in kotlin' type=kotlin.Nothing origin=null - reason: CONST String type=kotlin.String value="2" diff --git a/compiler/testData/ir/irText/expressions/whenReturnUnit.kt b/compiler/testData/ir/irText/expressions/whenReturnUnit.kt index 93722a87b99..2e29a3849fe 100644 --- a/compiler/testData/ir/irText/expressions/whenReturnUnit.kt +++ b/compiler/testData/ir/irText/expressions/whenReturnUnit.kt @@ -1,3 +1,5 @@ +// FIR_IDENTICAL + fun run(block: () -> Unit) {} fun branch(x: Int) = run {