JVM_IR: do not handle Nothing in suspend tail call bridges

Else they wouldn't be tail call, would they?
This commit is contained in:
pyos
2020-05-07 14:48:07 +02:00
committed by Ilmir Usmanov
parent 0acaedef92
commit 8809abdbac
10 changed files with 74 additions and 10 deletions
@@ -5656,6 +5656,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspensionInsideSafeCall.kt", "kotlin.coroutines");
}
@TestMetadata("tailCallToNothing.kt")
public void testTailCallToNothing() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallToNothing.kt");
}
@TestMetadata("tryCatchFinallyWithHandleResult.kt")
public void testTryCatchFinallyWithHandleResult_1_3() throws Exception {
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/tryCatchFinallyWithHandleResult.kt", "kotlin.coroutines");
@@ -5656,6 +5656,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspensionInsideSafeCall.kt", "kotlin.coroutines");
}
@TestMetadata("tailCallToNothing.kt")
public void testTailCallToNothing() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/tailCallToNothing.kt");
}
@TestMetadata("tryCatchFinallyWithHandleResult.kt")
public void testTryCatchFinallyWithHandleResult_1_3() throws Exception {
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/tryCatchFinallyWithHandleResult.kt", "kotlin.coroutines");