Source file test/fixedbugs/issue68054.go
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 7 package p 8 9 type Seq[V any] = func(yield func(V) bool) 10 11 func f[E any](seq Seq[E]) { 12 return 13 } 14 15 func g() { 16 f(Seq[int](nil)) 17 } 18 19 type T[P any] struct{} 20 21 type A[P any] = T[P] 22 23 var _ A[int] 24