cmd/compile: Wrong line number on "ambiguous selector" message #53420
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?
https://go.dev/play/p/0gpMl406d1K
What did you expect to see?
What did you see instead?
Line 23 is the
return
statement. Line 21 is theGet
.It would also be useful if the message indicated which type was ambiguous (in this case, it's the
Both
type).Note there should be no error at all. But that is filed as issue #53419
The text was updated successfully, but these errors were encountered: