cmd/compile: confusing error when using a keyword as package member #30039
Comments
Change https://golang.org/cl/160637 mentions this issue: |
Seemed easy enough, so I had a stab at this. I presume we should fix this in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Of course, here I fat-fingered the type and meant
types.Const
. I encountered this in a real program, and thetypes._
error had me confused for a second. I presume that the first of the two errors should not be printed, as the second error contains all the information the user needs.Interestingly enough, seems like the
go/*
packages don't do a particularly better job here:The text was updated successfully, but these errors were encountered: