-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.
Milestone
Description
https://play.golang.org/p/F3pxiyBuIL
package main
type (
string string
a struct {
m map[string]int
}
)
The above fails with
./main.go:4: invalid recursive type string
./main.go:6: invalid map key type string
Which is easy to understand and fix. When I recently did a bad "search and replace" in a large code base I ended up with
invalid map key type string
invalid map key type string (lots of these)
...
... too many errors
Which is harder to debug without seeing the origin of the error. It will be easier for me to find the culprit the next time I experience something like this, but I had one hour of scratching my head feeling stupid.
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.