1
0
mirror of https://github.com/golang/go synced 2024-11-15 10:40:35 -07:00
go/test/fixedbugs/issue68054.go

24 lines
387 B
Go
Raw Normal View History

// 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]