summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-02-16 10:39:40 +0100
committerAraq <rumpf_a@web.de>2017-02-16 10:39:40 +0100
commit01c785e0aa2f2b7f36aa51c34bbedfbf2e74fb39 (patch)
tree2f9ad7a6001a23bcf9a2bf861819adfffb785f11
parentaebe9d7d13ab57b7ab335c60c8965111ceec51b0 (diff)
downloadNim-01c785e0aa2f2b7f36aa51c34bbedfbf2e74fb39.tar.gz
make tests green again
-rw-r--r--compiler/seminst.nim4
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)