-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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/compile: misleading error message when struct lacks expected type parameters #49541
Comments
Here another example, probably related: https://gotipplay.golang.org/p/FBFHzcZOTmX
This produces the errors:
The type |
/cc @griesemer |
This is just a bug. cc: @findleyr |
Change https://golang.org/cl/378175 mentions this issue: |
Fixes golang#49541. Change-Id: I27a52d0722a7408758682e7ddcd608c0a6c4881b Reviewed-on: https://go-review.googlesource.com/c/go/+/378175 Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
commit 1ec5108
I compiled the following (incorrect) code: https://gotipplay.golang.org/p/NF9UzMFrJG1
I see these error messages:
The last error message is misleading because
S
actually does have a field namedF
even if it hasn't been instantiated with the required type parameters.The text was updated successfully, but these errors were encountered: