ssa: fix cvtType check types.Alias
This commit is contained in:
@@ -116,7 +116,7 @@ func (p goTypes) cvtType(typ types.Type) (raw types.Type, cvt bool) {
|
|||||||
case *types.TypeParam:
|
case *types.TypeParam:
|
||||||
return typ.Underlying(), false
|
return typ.Underlying(), false
|
||||||
case *types.Alias:
|
case *types.Alias:
|
||||||
return types.Unalias(t), true
|
return p.cvtType(types.Unalias(t))
|
||||||
default:
|
default:
|
||||||
panic(fmt.Sprintf("cvtType: unexpected type - %T", typ))
|
panic(fmt.Sprintf("cvtType: unexpected type - %T", typ))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user