ssa: make alias working in go 1.22

This commit is contained in:
Li Jie
2025-01-08 11:41:32 +08:00
parent 6170973b48
commit 64b54d4380
4 changed files with 6 additions and 2 deletions

View File

@@ -283,7 +283,7 @@ func (p Program) rtNamed(name string) *types.Named {
t := p.runtime().Scope().Lookup(name).Type()
for {
if alias, ok := t.(*types.Alias); ok {
t = alias.Rhs()
t = types.Unalias(alias)
} else {
break
}