How do you build a lambda to be passed as a parame...
# compiler
How do you build a lambda to be passed as a parameter to an inline function? So far, I've tried to use an
with a function build using
but it's giving me issues about the parent. If I try to set the parent to the containing function (i.e. the function that the inline function is called from), it gives me an error saying "unexpected parent functionName". I'm guessing that there's probably something specific that I need to put for the parent but I'm not entirely sure what it is.
It seems to be correct, maybe add
to that generated function?
Nevermind I figured it out. I was basically wrapping a lambda in an Ir-generated lambda and so the parent error that I was getting was for the original lambda because it was expecting its parent to be the Ir-generated one. I fixed it just by setting the parent on the original lambda. Thankfully debugging came in helpful because it showed what the expected parent was for the function