cmd/compile: "missing method" diagnostic can be confusing when methods aren't promoted due to ambiguity #57352
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
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
)?playground
What did you do?
https://go.dev/play/p/_SQyOJ_n2qv
What did you expect to see?
Either no error or an error saying that Foo has 2 a methods.
What did you see instead?
I didn't find this case in spec, but the message seems wrong.
The text was updated successfully, but these errors were encountered: