cmd/compile: confusing compilation error on receiver and type parameter names clash #52867
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 (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Compiled a program https://go.dev/play/p/njRo_BEKTXG?v=gotip
What did you expect to see?
Error reporting type name clash in receiver.
What did you see instead?
The
X is not a generic type
error, as if the receiver X was resolved to its type parameter X.The text was updated successfully, but these errors were encountered: