We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 version
$ go version go version devel go1.18-23832ba2e2 Sat Sep 11 05:05:56 2021 +0000 darwin/amd64
package main type A[T any] struct { T } func main(){ _=A[int]{} }
ok
// go2go playground is ok, something wrong here # command-line-arguments ./main1.go:4:2: embedded field type cannot be a (pointer to a) type parameter
The text was updated successfully, but these errors were encountered:
This works as intended, see #43621. The go2go playground is outdated.
Sorry, something went wrong.
No branches or pull requests
What version of Go are you using (
go version
)?What did you do?
What did you expect to see?
ok
What did you see instead?
The text was updated successfully, but these errors were encountered: