You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The LINQ call x = data.Where({d | d.Value > threshold}) works just fine as a standalone line of code; the Boo compiler will automagically transform the right-hand side of the lambda from an ExpressionStatement to a ReturnStatement. But if you put it in a quasiquote, for example inside a macro or metamethod:
method.Body.Add([| x = data.Where({d | d.Value > threshold}) |])
The code generated from this will result in a compile error because the implicit return never gets added.
The text was updated successfully, but these errors were encountered:
The LINQ call
x = data.Where({d | d.Value > threshold})
works just fine as a standalone line of code; the Boo compiler will automagically transform the right-hand side of the lambda from anExpressionStatement
to aReturnStatement
. But if you put it in a quasiquote, for example inside a macro or metamethod:method.Body.Add([| x = data.Where({d | d.Value > threshold}) |])
The code generated from this will result in a compile error because the implicit
return
never gets added.The text was updated successfully, but these errors were encountered: