From 01c785e0aa2f2b7f36aa51c34bbedfbf2e74fb39 Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 16 Feb 2017 10:39:40 +0100 Subject: [PATCH] make tests green again --- compiler/seminst.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ..