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
Assignees
Milestone

Comments

@griesemer
Copy link
Contributor

@griesemer griesemer commented May 28, 2015

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

@gopherbot gopherbot commented May 28, 2015

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

Loading

@griesemer griesemer closed this in ccc0376 May 28, 2015
@mikioh mikioh added this to the Go1.5 milestone May 28, 2015
@mikioh mikioh removed this from the Go1.5Maybe milestone 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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants