abitype: support Patch

This commit is contained in:
xushiwei
2024-06-30 11:53:12 +08:00
parent c20bea50e3
commit 8c45eb7524
4 changed files with 18 additions and 9 deletions

View File

@@ -89,9 +89,11 @@ func Merge(alt, pkg *types.Package, skips map[string]struct{}, skipall bool) {
scope := *alt.Scope()
old := getElems(&scope)
elems := make(map[string]types.Object, len(old))
for name, o := range old {
elems[name] = o
}
setElems(&scope, elems)
setScope(alt, &scope)