summary refs log tree commit diff stats
path: root/compiler/sem.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-01-06 11:26:52 +0100
committerAndreas Rumpf <rumpf_a@web.de>2016-01-06 11:26:52 +0100
commit98cc99cbcfa764aa3d14b4f77dcc85dbb568af21 (patch)
tree8e828d812c51b91ad77733ae734597741ad187b3 /compiler/sem.nim
parentdfe01bbe69789535aef01e4a89f9195024eee630 (diff)
downloadNim-98cc99cbcfa764aa3d14b4f77dcc85dbb568af21.tar.gz
fixes all known regressions
Diffstat (limited to 'compiler/sem.nim')
-rw-r--r--compiler/sem.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/sem.nim b/compiler/sem.nim
index 359cda3ac..cddd763ce 100644
--- a/compiler/sem.nim
+++ b/compiler/sem.nim
@@ -186,7 +186,7 @@ proc newSymG*(kind: TSymKind, n: PNode, c: PContext): PSym =
     result.owner = getCurrOwner()
   else:
     result = newSym(kind, considerQuotedIdent(n), getCurrOwner(), n.info)
-  #if kind in {skForVar} and result.owner.kind == skModule:
+  #if kind in {skForVar, skLet, skVar} and result.owner.kind == skModule:
   #  incl(result.flags, sfGlobal)
 
 proc semIdentVis(c: PContext, kind: TSymKind, n: PNode,