1// compile -goexperiment aliastypeparams
2
3// Copyright 2024 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7package p
8
9type Seq[V any] = func(yield func(V) bool)
10
11func f[E any](seq Seq[E]) {
12	return
13}
14
15func g() {
16	f(Seq[int](nil))
17}
18
19type T[P any] struct{}
20
21type A[P any] = T[P]
22
23var _ A[int]
24