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
After some more digging, it looks like the generated code is OK up to the point when it is optimized, and one of the needed declarations of the block variable is removed. I believe it is happening here:
My mixin is defined as
and then I use them as
I expect the generated function to produce (in Pug/Jade sense)
.content
but CLI tool produces Go source that cannot compile (only the function shown for brevity):
specifically, it needs one more declaration of
block
, like thisMy actual code doesn't nest the mixin in itself, but the case above illustrates the problem with a minimal level of unnecessary details.
The text was updated successfully, but these errors were encountered: