go/doc: AllMethods
mode erroneously includes methods shadowed by field declarations
#62640
Labels
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
)?go env
OutputWhat did you do?
Extract the following test to a local directory and run it:
What did you expect to see?
The
doc.Package
forexample.go
should not include any methods on typeS
, since the methodF
is shadowed by the fieldS.F
. (For confirmation that the field actually does shadow the method, see https://go.dev/play/p/OdO3BIxNHgd.)What did you see instead?
(CC @griesemer @agnivade)
The text was updated successfully, but these errors were encountered: