cmd/gofmt: rewrite 'a->a' adds parentheses around function return type #33104
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using?
go version go1.13beta1 windows/amd64
Does this issue reproduce with the latest release?
yes
What did you do?
gofmt -r 'a->a' -d funcreturn.go
What did you expect to see?
The return type of the function literal is still
string
, without parentheses.What did you see instead?
The return type is enclosed in parentheses.
The text was updated successfully, but these errors were encountered: