aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCuong Manh Le <cuong.manhle.vn@gmail.com>2024-02-22 18:52:39 +0700
committerGopher Robot <gobot@golang.org>2024-03-01 01:40:00 +0000
commitcda1e40b44771f8a01f361672cba721d0f283683 (patch)
tree4228267115083f60324dedb0dcb7454a60665c0e /test
parent4d923e3f077727718b708132ad67fad35dc064f9 (diff)
downloadgo-cda1e40b44771f8a01f361672cba721d0f283683.tar.gz
go-cda1e40b44771f8a01f361672cba721d0f283683.zip
cmd/compile: add missing Unalias call when writing type alias
Fixes #65778 Change-Id: I93af42967c7976d63b4f460b7ffbcb9a9c05ffe7 Reviewed-on: https://go-review.googlesource.com/c/go/+/565995 Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Robert Griesemer <gri@google.com> Reviewed-by: Jorropo <jorropo.pgm@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/fixedbugs/issue65778.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/fixedbugs/issue65778.go b/test/fixedbugs/issue65778.go
new file mode 100644
index 0000000000..30c680404d
--- /dev/null
+++ b/test/fixedbugs/issue65778.go
@@ -0,0 +1,13 @@
+// compile -godebug gotypesalias=1
+
+// Copyright 2024 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package p
+
+type A = int
+
+type T[P any] *A
+
+var _ T[int]