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