Open potalestor opened 1 month ago
package main import "fmt" type S struct{} type SS []*S type C struct{} type CC []*C func (ss SS) Convert() CC { cc := make(CC, len(ss)) for i := range ss { cc[i] = &C{} } return cc } func main() { var ss SS fmt.Println(ss.Convert()) }
@potalestor, this seems to be a corner case that is not correctly handled for named type receivers. We'll add a fix for it soon. Thanks for reporting!