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

test: add test case for runtime type identity for generics instantiated with anonymous struct literals with tags #46591

Open
mdempsky opened this issue Jun 5, 2021 · 2 comments
Labels
Milestone

Comments

@mdempsky
Copy link
Member

@mdempsky mdempsky commented Jun 5, 2021

This program should print 2: https://go2goplay.golang.org/p/CC066DjHD5x

cmd/compile gets this right, but cmd/go2go prints 1.

/cc @ianlancetaylor @griesemer (thx @dominikh for test case)

@griesemer
Copy link
Contributor

@griesemer griesemer commented Jun 5, 2021

The go2go playground is not actively supported anymore.
But we should probably add a test case for the compiler, just to cover this.
cc: @ianlancetaylor

@cherrymui cherrymui added this to the Go1.18 milestone Jun 7, 2021
@cherrymui cherrymui changed the title cmd/go2go: bad runtime type identity for generics instantiated with anonymous struct literals with tags test: add test case for runtime type identity for generics instantiated with anonymous struct literals with tags Jun 7, 2021
@cherrymui
Copy link
Contributor

@cherrymui cherrymui commented Jun 7, 2021

As noted, cmd/go2go is not actively supported now. Leave the issue open for adding the test case. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants