0
1
mirror of https://github.com/golang/go synced 2025-09-22 08:19:27 +00:00
Files
go/test/fixedbugs/issue68054.go
Cherry Mui 00a7bdcb55 all: delete aliastypeparams GOEXPERIMENT
Always enable aliastypeparams and remove the GOEXPERIMENT.

Change-Id: Ic38fe25b0bba312a7f83f7bb94b57ab75ce0f0c3
Reviewed-on: https://go-review.googlesource.com/c/go/+/691956
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Mark Freeman <markfreeman@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
2025-08-12 06:28:26 -07:00

24 lines
357 B
Go

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