New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go2go: unhelpful error message with generic map key type #40551
Labels
Milestone
Comments
ianlancetaylor
added
the
NeedsFix
The path to resolution is known, but the work has not been done.
label
Aug 3, 2020
tdakkota
added a commit
to tdakkota/go
that referenced
this issue
Aug 6, 2020
Change https://golang.org/cl/247258 mentions this issue: |
tdakkota
added a commit
to tdakkota/go
that referenced
this issue
Aug 11, 2020
gopherbot
pushed a commit
that referenced
this issue
Aug 11, 2020
Fixes #40551. Change-Id: Ifc10dbdcdbee6af5bdbfc36ec78e1a4361672acc GitHub-Last-Rev: 8d373de GitHub-Pull-Request: #40628 Reviewed-on: https://go-review.googlesource.com/c/go/+/247258 Run-TryBot: Robert Griesemer <gri@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
Fixed by https://golang.org/cl/247258. |
Change https://golang.org/cl/248057 mentions this issue: |
gopherbot
pushed a commit
that referenced
this issue
Aug 12, 2020
…generic map key type Port of go/types CL https://golang.org/cl/247258. (The typeparamsB.go2 version of typeparams.go2 doesn't exist yet for types2.) Updates #40551. Change-Id: If2b329372bd4d160b4def8b66cc87f25ed4823fd Reviewed-on: https://go-review.googlesource.com/c/go/+/248057 Reviewed-by: Robert Griesemer <gri@golang.org>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
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
The text was updated successfully, but these errors were encountered: