JVM_IR: Also check attributes for suspendImpls when generating continuation

Otherwise, it would not generate continuations for overloads.
This commit is contained in:
Ilmir Usmanov
2019-12-27 16:04:36 +01:00
parent d17afddaa9
commit 4d9d62ad12
9 changed files with 94 additions and 3 deletions
@@ -6348,6 +6348,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/superCallInterface.kt", "kotlin.coroutines");
}
@TestMetadata("superCallOverload.kt")
public void testSuperCallOverload_1_3() throws Exception {
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/superCallOverload.kt", "kotlin.coroutines");
}
@TestMetadata("superCall.kt")
public void testSuperCall_1_3() throws Exception {
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/superCall.kt", "kotlin.coroutines");
@@ -7313,6 +7313,16 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/superCallInterface.kt", "kotlin.coroutines");
}
@TestMetadata("superCallOverload.kt")
public void testSuperCallOverload_1_2() throws Exception {
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/superCallOverload.kt", "kotlin.coroutines.experimental");
}
@TestMetadata("superCallOverload.kt")
public void testSuperCallOverload_1_3() throws Exception {
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/superCallOverload.kt", "kotlin.coroutines");
}
@TestMetadata("superCall.kt")
public void testSuperCall_1_2() throws Exception {
runTestWithPackageReplacement("compiler/testData/codegen/box/coroutines/suspendFunctionAsCoroutine/superCall.kt", "kotlin.coroutines.experimental");