[K/N] Handle Unit? and Nothing? correctly in finally transformation

^KT-52985
This commit is contained in:
Pavel Kunyavskiy
2022-06-28 15:25:34 +02:00
committed by Space
parent dc48d722fe
commit c1ec1d9d4c
10 changed files with 80 additions and 3 deletions
@@ -13339,6 +13339,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/finally/objectInFinally.kt");
}
@Test
@TestMetadata("returnNullFromInlined.kt")
public void testReturnNullFromInlined() throws Exception {
runTest("compiler/testData/codegen/box/finally/returnNullFromInlined.kt");
}
@Test
@TestMetadata("someStuff.kt")
public void testSomeStuff() throws Exception {
@@ -13381,6 +13381,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTest("compiler/testData/codegen/box/finally/objectInFinally.kt");
}
@Test
@TestMetadata("returnNullFromInlined.kt")
public void testReturnNullFromInlined() throws Exception {
runTest("compiler/testData/codegen/box/finally/returnNullFromInlined.kt");
}
@Test
@TestMetadata("someStuff.kt")
public void testSomeStuff() throws Exception {
@@ -11887,6 +11887,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
runTest("compiler/testData/codegen/box/finally/objectInFinally.kt");
}
@TestMetadata("returnNullFromInlined.kt")
public void testReturnNullFromInlined() throws Exception {
runTest("compiler/testData/codegen/box/finally/returnNullFromInlined.kt");
}
@TestMetadata("someStuff.kt")
public void testSomeStuff() throws Exception {
runTest("compiler/testData/codegen/box/finally/someStuff.kt");