createLambda
fun createLambda(context: IrPluginContext, parent: IrDeclarationParent? = null, functionType: IrType? = null, builder: IrSimpleFunction.() -> Unit): IrFunctionExpressionImpl(source)
Create a lambda expression.
The type will be inferred from the built function if not provided, which means that in that scenario it must have a defined return type. If functionType is a well-formed function type with a concrete, explicit return type, the returnType will be inferred from it. Don't rely on this unless the function type is a constant.