ssa: fix goTypes.cvtNamed recurs for typeargs

This commit is contained in:
visualfc
2024-09-14 11:30:53 +08:00
parent be3c4ab24a
commit dca028a84f
4 changed files with 5569 additions and 5487 deletions

View File

@@ -0,0 +1,11 @@
package main
type My[T any] struct {
fn func(n T)
next *My[T]
}
func main() {
m := &My[int]{next: &My[int]{fn: func(n int) { println(n) }}}
m.next.fn(100)
}