Sign in
go
/
go
/
b2b8872c876201eac2d0707276c6999ff3eb185e
/
.
/
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()
}