Supported inlining of suspend lambdas
This commit is contained in:
+1
-2
@@ -262,8 +262,7 @@ internal class FunctionInlining(val context: Context) : IrElementTransformerVoid
|
|||||||
val isInlinableLambdaArgument: Boolean
|
val isInlinableLambdaArgument: Boolean
|
||||||
get() {
|
get() {
|
||||||
if (!parameter.isInlineParameter()) return false
|
if (!parameter.isInlineParameter()) return false
|
||||||
if (argumentExpression is IrFunctionReference
|
if (argumentExpression is IrFunctionReference) return true
|
||||||
&& !argumentExpression.descriptor.isSuspend) return true // Skip suspend functions for now since it's not supported by FE anyway.
|
|
||||||
|
|
||||||
// Do pattern-matching on IR.
|
// Do pattern-matching on IR.
|
||||||
if (argumentExpression !is IrBlock) return false
|
if (argumentExpression !is IrBlock) return false
|
||||||
|
|||||||
Reference in New Issue
Block a user