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
$ cat bug.go
package p
type pt struct{ x, y int }
var _ = map[pt]pt{pt{0, 0}: pt{1, 1}}
$ gofmt -s bug.go
package p
type pt struct{ x, y int }
var _ = map[pt]pt{pt{0, 0}: {1, 1}}
Note it simplified
pt{1, 1}
to just{1, 1}
, but leftpt{0, 0}
as is. It seems to have missed Go 1.5's language change to map literals./cc @griesemer
The text was updated successfully, but these errors were encountered: