-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
go/internal/gcimporter: fix suppressed gotypesalias=1 tests #66859
Comments
Change https://go.dev/cl/579415 mentions this issue: |
CL 577715 caused these test cases to fail, but this was not detected by CI because they are "long" tests. Updates #66859 Change-Id: I84320d9091772540df2ab15f57d93031596bb89b Reviewed-on: https://go-review.googlesource.com/c/go/+/579415 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Griesemer <gri@google.com> Auto-Submit: Alan Donovan <adonovan@google.com>
The first error, related to $goroot/test/typeparam/issue50259.go, may possibly be an incorrect type declaration (TBD). The 2nd and 3rd error, related to $goroot/test/typeparam/struct.go, disappears once the compiler is switched to using Alias types (currently disabled). |
Follow-up: the type declaration in var x T[B]
type T[_ any] struct{}
type A T[B]
type B = T[A] can be written as var x T[T[A]]
type T[_ any] struct{}
type A T[T[A]]
type B = T[A] and since |
Change https://go.dev/cl/586236 mentions this issue: |
https://go.dev/cl/577715 appears to have broken three "long" tests in go/internal/gcimporter. The quick fix is to disable them; this issue tracks a principled fix.
The text was updated successfully, but these errors were encountered: