We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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 go1.18.4 windows/amd64
yes
compile a small go file
package weird type Weird[A any] interface { } type weird struct { } func MakeWeird[A any]() Weird[A] { return weird{} } func IsWeird[A any](data Weird[A]) bool { switch data.(type) { case weird: return true default: return false } }
successful compile
.\weird\weird.go:10:14: internal compiler error: assertion failed
The text was updated successfully, but these errors were encountered:
Doesn't repro on tip
Sorry, something went wrong.
Duplicate of #53762
No branches or pull requests
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What did you do?
compile a small go file
What did you expect to see?
successful compile
What did you see instead?
The text was updated successfully, but these errors were encountered: