[IR] Taught inliner to work with inline suspend lambdas
This commit is contained in:
+1
-1
@@ -275,7 +275,7 @@ class FunctionInlining(val context: CommonBackendContext) : IrElementTransformer
|
||||
//-------------------------------------------------------------------------//
|
||||
|
||||
private fun IrValueParameter.isInlineParameter() =
|
||||
!isNoinline && !type.isNullable() && type.isFunctionOrKFunction()
|
||||
!isNoinline && !type.isNullable() && (type.isFunction() || type.isSuspendFunction())
|
||||
|
||||
private inner class ParameterToArgument(
|
||||
val parameter: IrValueParameter,
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// WITH_RUNTIME
|
||||
// WITH_COROUTINES
|
||||
// COMMON_COROUTINES_TEST
|
||||
|
||||
Reference in New Issue
Block a user