abi.TypeName

This commit is contained in:
xushiwei
2024-05-27 12:00:01 +08:00
parent a6f92b8ff9
commit c0a156f347
3 changed files with 12 additions and 12 deletions

View File

@@ -123,7 +123,7 @@ func (b *Builder) TypeName(t types.Type) (ret string, pub bool) {
return b.FuncName(t), true
case *types.Named:
o := t.Obj()
return TypeName(o), o.Exported()
return "_llgo_" + TypeName(o), o.Exported()
case *types.Interface:
if t.Empty() {
return "_llgo_any", true