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

go/types: misleading error message for invalid interface type #10979

Closed
griesemer opened this issue May 28, 2015 · 1 comment
Closed

go/types: misleading error message for invalid interface type #10979

griesemer opened this issue May 28, 2015 · 1 comment
Milestone

Comments

@griesemer
Copy link
Contributor

For http://play.golang.org/p/_kMT4ldM-W

gotype (and thus go/types) complains with:

x.go:4:5: invalid AST: int is not named type

Instead, it should say something along the lines of:

interface contains embedded non-interface int

(the playground gc internal error has been reported in another issue).

@griesemer griesemer self-assigned this May 28, 2015
@griesemer griesemer added this to the Go1.5Maybe milestone May 28, 2015
@gopherbot
Copy link
Contributor

CL https://golang.org/cl/10466 mentions this issue.

@mikioh mikioh modified the milestones: Go1.5, Go1.5Maybe May 28, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
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