-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
types2, go/types: "cannot convert to type" regression with alias to pointer types #67540
Comments
Change https://go.dev/cl/587075 mentions this issue: |
This is an issue with types2 (and go/types), not the cmd/go. Minimal reproducer:
|
I'm not familiar with compiler internals, so I just file the issue with a generic title first :) |
Change https://go.dev/cl/587156 mentions this issue: |
This change adds an Unalias call in applyTypeFunc and arrayPtrDeref. At the moment this doesn't change anything or fix any bugs because of the way these two functions are invoked, but that could change in the future. Also, manually reviewed all type assertions to Type types. Excluding assertions to type parameters, no obvious issues were found except for #67540 for which a separate fix is pending. There are potential issues with assertions type parameters which will be addressed in a follow-up CL. For #67547. Change-Id: I312268dc5e104f95b68f115f00aec3ec4c82e41f Reviewed-on: https://go-review.googlesource.com/c/go/+/587156 Reviewed-by: Robert Findley <rfindley@google.com> Auto-Submit: Robert Griesemer <gri@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Griesemer <gri@google.com>
Change https://go.dev/cl/587159 mentions this issue: |
Thank you for the quick fix! |
Go version
go version devel go1.23-22344e11f2 2024-05-20 21:19:39 +0000 linux/amd64
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
What did you expect to see?
No error, just like previous versions of Go:
The text was updated successfully, but these errors were encountered: