Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/doc: allow constructors to return error #27988

rsc opened this issue Oct 3, 2018 · 1 comment

cmd/doc: allow constructors to return error #27988

rsc opened this issue Oct 3, 2018 · 1 comment


Copy link

rsc commented Oct 3, 2018

go doc os
should show Open under type File. It did in Go 1.10 but no longer does.

The recent CL that makes constructors have only one result is too aggressive.
Probably it should allow any number of additional results as long as they are not
types from the current package.

/cc @griesemer @agnivade

@rsc rsc added this to the Go1.12 milestone Oct 3, 2018
Copy link

agnivade commented Oct 3, 2018

Duplicate of #27928. I will take a look.

@agnivade agnivade closed this as completed Oct 3, 2018
@golang golang locked and limited conversation to collaborators Oct 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet

No branches or pull requests

3 participants