Initial commit: Go 1.23 release state
This commit is contained in:
23
test/fixedbugs/issue68054.go
Normal file
23
test/fixedbugs/issue68054.go
Normal file
@@ -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]
|
||||
Reference in New Issue
Block a user