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
This is similar to #22072, but likely easier to fix.
The root problem is when we have an assignment like x := y we're noding the left-hand side (x) like it's a general Go expression (using exprList), but then later we apply colasdefn to re-declare identifiers as appropriate.
Instead noder should probably apply colasdefn's logic directly to the package syntax AST.
This package is valid, but cmd/compile rejects it with "cannot declare name bytes.Buffer":
The text was updated successfully, but these errors were encountered: