x/tools/cmd/godoc: first return value with an unqualified imported type not showing up in documentation output #15107
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
go version
)?go version go1.5.3 linux/amd64
go env
)?Using
godoc -http=:6060
to generate live documentation, I seem to have an edge case that does not appear to make any sense. Function return values with an imported type without a qualifier as the first value do not appear in documentation, with return order being the only difference and the imported type without a qualifier as the first return value will cause the function to not show up in documentation output HTML. An example is as follows:In this example, only
TestFnX
appears in the documentation output. However, if I qualify the imported package type, both work:In this example, both
TestFn
andTestFnX
appear in the documentation output.Both examples in the code sample above should have worked - the return order of the imported type seems to be the only difference; I'm able to generate documentation for the function if the first return value type is not from the unqualified imported package.
Only if a native type is returned first, or if the imported type has a qualifier, will the function appear correctly in the
godoc
output.The text was updated successfully, but these errors were encountered: