JVM_IR: generate continuation classes for suspend inline references
This is somewhat suboptimal since this results in `::suspendInline`
generating 2 classes while `{ suspendInline() }` only creates 1, but
it's the best allowed by the existing hierarchy of classes in stdlib. At
least it works?
^KT-50832 Fixed
This commit is contained in:
+6
@@ -7433,6 +7433,12 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstructionWithJumpOut.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("suspendInlineReference.kt")
|
||||
public void testSuspendInlineReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/suspendInlineReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("suspendLambdaInInterface.kt")
|
||||
public void testSuspendLambdaInInterface() throws Exception {
|
||||
|
||||
+6
@@ -7475,6 +7475,12 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstructionWithJumpOut.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("suspendInlineReference.kt")
|
||||
public void testSuspendInlineReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/suspendInlineReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("suspendLambdaInInterface.kt")
|
||||
public void testSuspendLambdaInInterface() throws Exception {
|
||||
|
||||
+5
@@ -6564,6 +6564,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
runTest("compiler/testData/codegen/box/coroutines/suspendInTheMiddleOfObjectConstructionWithJumpOut.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendInlineReference.kt")
|
||||
public void testSuspendInlineReference() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/suspendInlineReference.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("suspendLambdaInInterface.kt")
|
||||
public void testSuspendLambdaInInterface() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/coroutines/suspendLambdaInInterface.kt");
|
||||
|
||||
Reference in New Issue
Block a user