-
Notifications
You must be signed in to change notification settings - Fork 18k
go/types, types2: go generic assert compile escape #52228
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
Comments
cc @griesemer |
maybe a helpful tricks in X func: wrap dst with any(dst) can “fix” panic. But I think origin code should be worked or not compilable. |
may related with #51700, I noticed they both failed with two type assert. |
Change https://go.dev/cl/399058 mentions this issue: |
@gopherbot Please open backport to 1.18 This is valid code that is being compiled incorrectly. |
Backport issue(s) opened: #52244 (for 1.18). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go run main.go
What did you expect to see?
run then exist 0 or there this can not compiled.
What did you see instead?
The text was updated successfully, but these errors were encountered: