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:
Generated
+5
@@ -7373,6 +7373,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
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");
|
||||
|
||||
Generated
+5
@@ -7373,6 +7373,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
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");
|
||||
|
||||
+5
@@ -7373,6 +7373,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
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");
|
||||
|
||||
Reference in New Issue
Block a user