aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/obj
diff options
context:
space:
mode:
authorRobert Griesemer <gri@google.com>2025-11-18 15:47:44 -0800
committerGopher Robot <gobot@golang.org>2025-11-20 10:25:17 -0800
commit790384c6c23f7ce44199ea3cd61c856d632b08aa (patch)
tree04d6b61b6eca359cbfffc62371d56bd78fb02159 /src/cmd/internal/obj
parenta49b0302d0e1d97b67a5f3f3beceafdcbc4c2ef0 (diff)
downloadgo-790384c6c23f7ce44199ea3cd61c856d632b08aa.tar.xz
spec: adjust rule for type parameter on RHS of alias declaration
Per discussion on issue #75885, a type parameter on the RHS of an alias declaration must not be declared in the same declaration (but it may be declared by an enclosing function). This relaxes the spec slightly and allows for (pre-existing) test cases. Add a corresponding check to the type checker (there was no check for type parameters on the RHS of alias declarations at all, before). Fixes #75884. Fixes #75885. Change-Id: I1e5675978e6423d626c068829d4bf5e90035ea82 Reviewed-on: https://go-review.googlesource.com/c/go/+/721820 Auto-Submit: Robert Griesemer <gri@google.com> Reviewed-by: Robert Griesemer <gri@google.com> Reviewed-by: Mark Freeman <markfreeman@google.com> Reviewed-by: Robert Findley <rfindley@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/cmd/internal/obj')
0 files changed, 0 insertions, 0 deletions