Sign in
go
/
go
/
refs/tags/go1.21.2
/
.
/
test
/
typeparam
/
issue50552.dir
/
a.go
blob: 89b9bcb87775ea5888ede70fadd1f39bbb24f315 [
file
] [
log
] [
blame
]
package a
type Builder[T any] struct{}
func (r Builder[T]) New() T {
var v T
return v
}
func (r Builder[T]) New2() T {
return r.New()
}
func BuildInt() int {
return Builder[int]{}.New()
}