cmd/compile: confusing error when variable name shares type name #26547
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using?
1.10.3
What operating system and processor architecture are you using?
amd64
What did you do?
Playground Link
What did you see?
What did you expect to see?
A better error message, since
dog
is a type, after all. Maybe something like:The text was updated successfully, but these errors were encountered: