Closed ianlancetaylor closed 4 years ago
Change https://golang.org/cl/247258 mentions this issue: [dev.go2go] go/types: add special case report for generic map key type
Fixed by https://golang.org/cl/247258.
Change https://golang.org/cl/248057 mentions this issue: [dev.go2go] cmd/compile/internal/types2: add special case report for generic map key type
For this test case:
the type checker reports
This is accurate but cryptic. It would be better if the error message said something like
map key type T does not have comparable constraint
.CC @griesemer