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:
pyos
2020-03-13 13:14:37 +01:00
committed by Ilmir Usmanov
parent f29e665dce
commit bdd88e1655
11 changed files with 133 additions and 6 deletions
@@ -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")