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/compile/internal/types2: "type _ any" rejected but "type _ comparable" accepted #46090

Open
mdempsky opened this issue May 10, 2021 · 0 comments
Assignees
Milestone

Comments

@mdempsky
Copy link
Member

@mdempsky mdempsky commented May 10, 2021

This package produces an "undefined: any" error when compiled with go tool compile -G=1:

package p
type _ any

but this package successfully type-checks (but fails later anyway when compiled with -G=3):

package p
type _ comparable

They both produce errors on go2goplay.golang.org.

/cc @griesemer @findleyr

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
3 participants