runtime: panic any custometype

This commit is contained in:
visualfc
2024-06-23 21:15:20 +08:00
parent df39b66e11
commit c090c34491
16 changed files with 798 additions and 532 deletions

View File

@@ -202,7 +202,7 @@ func (b Builder) abiInitNamed(ret Expr, t *types.Named) func() Expr {
pkg := b.Pkg
prog := b.Prog
path := abi.PathOf(t.Obj().Pkg())
name := NameOf(t)
name := t.Obj().Name()
var initNamed = pkg.rtFunc("InitNamed")
var tSlice = lastParamType(prog, initNamed)
mset := typeutil.IntuitiveMethodSet(t, nil)