JVM_IR: treat suspend-converted references as lambdas for inlining

Again, this is consistent with adapted function references, since
they're pretty much the same anyway.
This commit is contained in:
pyos
2020-10-06 17:06:11 +02:00
committed by max-kammerer
parent 12bec7cca2
commit a4b67f007f
14 changed files with 105 additions and 14 deletions
@@ -9893,6 +9893,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/coroutines/suspendConversion/onArgument.kt");
}
@TestMetadata("onInlineArgument.kt")
public void testOnInlineArgument() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendConversion/onInlineArgument.kt");
}
@TestMetadata("subtypeOfFunctionalTypeToSuspendConversion.kt")
public void testSubtypeOfFunctionalTypeToSuspendConversion() throws Exception {
runTest("compiler/testData/codegen/box/coroutines/suspendConversion/subtypeOfFunctionalTypeToSuspendConversion.kt");