aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlan Donovan <adonovan@google.com>2024-03-27 09:44:01 -0400
committerGopher Robot <gobot@golang.org>2024-04-05 16:29:58 +0000
commitb24ec88bb93438bfabca34a2acb739a629c23806 (patch)
treee3a23d1e1436a2217e1a6682791614a7a8f63e8b /test
parent2e064cf14441460290fd25d9d61f02a9d0bae671 (diff)
downloadgo-b24ec88bb93438bfabca34a2acb739a629c23806.tar.gz
go-b24ec88bb93438bfabca34a2acb739a629c23806.zip
cmd/compile: export/import materialized aliases
This CL changes the compiler's type import/export logic to create and preserve materialized Alias types when GODEBUG=gotypesaliases=1. In conjunction with CL 574717, it allows the x/tools tests to pass with GODEBUG=gotypesaliases=1. Updates #65294 Updates #64581 Fixes #66550 Change-Id: I70b9279f4e0ae7a1f95ad153c4e6909a878915a4 Reviewed-on: https://go-review.googlesource.com/c/go/+/574737 Auto-Submit: Alan Donovan <adonovan@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Robert Findley <rfindley@google.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'test')
-rw-r--r--test/typeparam/struct.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/typeparam/struct.go b/test/typeparam/struct.go
index 2dad9087bc..fee38eccc3 100644
--- a/test/typeparam/struct.go
+++ b/test/typeparam/struct.go
@@ -21,6 +21,7 @@ type S1 struct {
type Eint = E[int]
type Ebool = E[bool]
+type Eint2 = Eint
type S2 struct {
Eint