[FIR2IR] Fix unwrapping of single-statement blocks

Unwrapping should be done with respect to `forceUnitType` parameter.

^KT-65019: Fixed
This commit is contained in:
vladislav.grechko
2024-01-16 14:16:46 +01:00
committed by Space Team
parent 5b7478c0a6
commit 8b1d87848d
22 changed files with 132 additions and 1 deletions
@@ -19726,6 +19726,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
runTest("compiler/testData/codegen/box/finally/continueAndOuterFinally.kt");
}
@Test
@TestMetadata("decrementInFinally.kt")
public void testDecrementInFinally() throws Exception {
runTest("compiler/testData/codegen/box/finally/decrementInFinally.kt");
}
@Test
@TestMetadata("finallyAndFinally.kt")
public void testFinallyAndFinally() throws Exception {
@@ -19726,6 +19726,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
runTest("compiler/testData/codegen/box/finally/continueAndOuterFinally.kt");
}
@Test
@TestMetadata("decrementInFinally.kt")
public void testDecrementInFinally() throws Exception {
runTest("compiler/testData/codegen/box/finally/decrementInFinally.kt");
}
@Test
@TestMetadata("finallyAndFinally.kt")
public void testFinallyAndFinally() throws Exception {