make tests green again

This commit is contained in:
Araq
2017-02-16 10:39:40 +01:00
parent aebe9d7d13
commit 01c785e0aa

View File

@@ -112,10 +112,12 @@ proc freshGenSyms(n: PNode, owner, orig: PSym, symMap: var TIdTable) =
var x = PSym(idTableGet(symMap, s))
if x != nil:
n.sym = x
when false:
elif s.owner.kind == skPackage:
#echo "copied this ", s.name.s
x = copySym(s, false)
x.owner = owner
idTablePut(symMap, s, x)
n.sym = x
else:
for i in 0 .. <safeLen(n): freshGenSyms(n.sons[i], owner, orig, symMap)