/ go Public
cmd/compile: redundant typecheck errors when using map[T]func(Undefined) #36039
Issues related to the Go compiler and/or runtime.
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
Does this issue reproduce with the latest release?
What did you do?
What did you expect to see?
Three simple errors, just saying that
Undefinedis undefined on each of the three lines.
What did you see instead?
A redundant error on the
It distracted me in some real code, particularly because the shorter and more helpful error is below it. We probably want all three cases to error in a consistent way.
The text was updated successfully, but these errors were encountered: