JVM_IR: place suspend markers in faux lambdas around inline references
Otherwise, the assumption that coroutine codegen makes about every inlined function already having the markers breaks and it is no longer true that calls to inline lambdas do not require them.
This commit is contained in:
+10
@@ -3885,10 +3885,20 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/boxInline/suspend/callableReference"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
|
||||
}
|
||||
|
||||
@TestMetadata("nonTailCall.kt")
|
||||
public void testNonTailCall() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/suspend/callableReference/nonTailCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("simple.kt")
|
||||
public void testSimple() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/suspend/callableReference/simple.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("unitReturn.kt")
|
||||
public void testUnitReturn() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/suspend/callableReference/unitReturn.kt");
|
||||
}
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/codegen/boxInline/suspend/defaultParameter")
|
||||
|
||||
Reference in New Issue
Block a user