go/printer: produces a invalid source, for a successfully parsed AST #69320
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Consider:
This is parsed successfully by
go/parser
and it gets formatted into:This is not valid go syntax. Not sure how this should be handled, should
type _[a (b + 3),] struct{}
cause a parser error?For example, the source below causes a parser error (
expected ')', found '+'
)CC @griesemer
The text was updated successfully, but these errors were encountered: