ssa: add debug info of function return type

This commit is contained in:
Li Jie
2024-09-22 17:43:31 +08:00
parent 70e271959b
commit c6bb4a23ae
3 changed files with 31 additions and 6 deletions

View File

@@ -109,6 +109,8 @@ func (p goTypes) cvtType(typ types.Type) (raw types.Type, cvt bool) {
if elem, cvt := p.cvtType(t.Elem()); cvt {
return types.NewChan(t.Dir(), elem), true
}
case *types.Tuple:
return p.cvtTuple(t)
default:
panic(fmt.Sprintf("cvtType: unexpected type - %T", typ))
}