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/go2go: _ = interface{type int}(1) fails with a bad error message #39699

Closed
griesemer opened this issue Jun 18, 2020 · 2 comments
Closed

cmd/go2go: _ = interface{type int}(1) fails with a bad error message #39699

griesemer opened this issue Jun 18, 2020 · 2 comments
Assignees
Milestone

Comments

@griesemer
Copy link
Contributor

@griesemer griesemer commented Jun 18, 2020

Extracted from: https://twitter.com/hajimehoshi/status/1273094191686586374

At the moment we don't permit usage of interfaces with type lists outside constraints, but this shouldn't fail like this. At least there should be clearer error message, or better, we should permit this.

@griesemer griesemer added this to the Unreleased milestone Jun 18, 2020
@griesemer griesemer self-assigned this Jun 18, 2020
@gopherbot
Copy link

@gopherbot gopherbot commented Jul 1, 2020

Change https://golang.org/cl/240720 mentions this issue: [dev.go2go] go/types: better error message when converting to a constraint interface

gopherbot pushed a commit that referenced this issue Jul 1, 2020
…raint interface

Fixes #39699.

Change-Id: Ib2a756a275c0f96201800d947a72db49d3319a3e
Reviewed-on: https://go-review.googlesource.com/c/go/+/240720
Reviewed-by: Robert Griesemer <gri@golang.org>
@griesemer
Copy link
Contributor Author

@griesemer griesemer commented Jul 1, 2020

Fixed on dev.go2go.

@griesemer griesemer closed this Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.