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/goapi: embedded interfaces don't work #2801

Closed
bradfitz opened this issue Jan 28, 2012 · 3 comments
Closed

cmd/goapi: embedded interfaces don't work #2801

bradfitz opened this issue Jan 28, 2012 · 3 comments
Milestone

Comments

@bradfitz
Copy link
Contributor

goapi doesn't expand embedded interfaces:

pkg io, type ReadCloser interface {}
pkg io, type ReadSeeker interface {}
pkg io, type ReadWriteCloser interface {}
pkg io, type ReadWriteSeeker interface {}
@rsc
Copy link
Contributor

rsc commented Jan 29, 2012

Comment 1:

It would be fine to just include the embedded name,
somehow distinguished from method names.
type ReadCloser interface { +Reader +Closer }

@bradfitz
Copy link
Contributor Author

Comment 2:

Expansion fix (without +Reader hack)
http://golang.org/cl/5576068
(I needed this for a subsequent CL anyway)

@bradfitz
Copy link
Contributor Author

Comment 3:

This issue was closed by revision a94bd4d.

Status changed to Fixed.

@bradfitz bradfitz self-assigned this Jan 30, 2012
@rsc rsc added this to the Go1 milestone Apr 10, 2015
@rsc rsc removed the priority-go1 label Apr 10, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants