aboutsummaryrefslogtreecommitdiff
path: root/test/fixedbugs
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixedbugs')
-rw-r--r--test/fixedbugs/issue68054.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/fixedbugs/issue68054.go b/test/fixedbugs/issue68054.go
new file mode 100644
index 0000000000..5409fc9081
--- /dev/null
+++ b/test/fixedbugs/issue68054.go
@@ -0,0 +1,23 @@
+// compile -goexperiment aliastypeparams
+
+// 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 Seq[V any] = func(yield func(V) bool)
+
+func f[E any](seq Seq[E]) {
+ return
+}
+
+func g() {
+ f(Seq[int](nil))
+}
+
+type T[P any] struct{}
+
+type A[P any] = T[P]
+
+var _ A[int]