diff options
author | Araq <rumpf_a@web.de> | 2017-02-16 10:39:40 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-02-16 10:39:40 +0100 |
commit | 01c785e0aa2f2b7f36aa51c34bbedfbf2e74fb39 (patch) | |
tree | 2f9ad7a6001a23bcf9a2bf861819adfffb785f11 | |
parent | aebe9d7d13ab57b7ab335c60c8965111ceec51b0 (diff) | |
download | Nim-01c785e0aa2f2b7f36aa51c34bbedfbf2e74fb39.tar.gz |
make tests green again
-rw-r--r-- | compiler/seminst.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/seminst.nim b/compiler/seminst.nim index 1a96b4bc6..acaade494 100644 --- a/compiler/seminst.nim +++ b/compiler/seminst.nim @@ -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) |