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()
}