[FIR2IR] Fix unwrapping of single-statement blocks
Unwrapping should be done with respect to `forceUnitType` parameter. ^KT-65019: Fixed
This commit is contained in:
committed by
Space Team
parent
5b7478c0a6
commit
8b1d87848d
+6
@@ -14607,6 +14607,12 @@ public class FirJsCodegenBoxTestGenerated extends AbstractFirJsCodegenBoxTest {
|
||||
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 {
|
||||
|
||||
Generated
+6
@@ -14607,6 +14607,12 @@ public class FirJsES6CodegenBoxTestGenerated extends AbstractFirJsES6CodegenBoxT
|
||||
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 {
|
||||
|
||||
+6
@@ -14607,6 +14607,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
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 {
|
||||
|
||||
+6
@@ -14607,6 +14607,12 @@ public class IrJsES6CodegenBoxTestGenerated extends AbstractIrJsES6CodegenBoxTes
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user