ssa: fix cvtType check types.Alias

This commit is contained in:
visualfc
2025-01-13 12:38:15 +08:00
parent 745eff0783
commit 9f76237705

View File

@@ -116,7 +116,7 @@ func (p goTypes) cvtType(typ types.Type) (raw types.Type, cvt bool) {
case *types.TypeParam:
return typ.Underlying(), false
case *types.Alias:
return types.Unalias(t), true
return p.cvtType(types.Unalias(t))
default:
panic(fmt.Sprintf("cvtType: unexpected type - %T", typ))
}