summary refs log tree commit diff stats
path: root/compiler/transf.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-01-04 03:10:09 +0100
committerAndreas Rumpf <rumpf_a@web.de>2016-01-04 03:10:09 +0100
commit3d7c57db8812e6cf7bf1e48d074d3c1a986ede4e (patch)
treedbe4a02146fa6352f355bcb2c62584cf7c76c238 /compiler/transf.nim
parent91e9cb64e9a7b4c46b07ef2a4302cf2cc5295435 (diff)
downloadNim-3d7c57db8812e6cf7bf1e48d074d3c1a986ede4e.tar.gz
fixes #2659
Diffstat (limited to 'compiler/transf.nim')
-rw-r--r--compiler/transf.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/transf.nim b/compiler/transf.nim
index 83311d95c..1aba33c74 100644
--- a/compiler/transf.nim
+++ b/compiler/transf.nim
@@ -114,6 +114,9 @@ proc transformSymAux(c: PTransf, n: PNode): PNode =
   if n.sym.kind == skIterator and n.sym.typ.callConv == ccClosure:
     if c.tooEarly: return n
     else: return liftIterSym(n, getCurrOwner(c))
+  #elif n.sym.kind in {skVar, skLet} and n.sym.typ.callConv == ccClosure:
+  #  echo n.info, " come heer for ", c.tooEarly
+  #  if not c.tooEarly: return makeClosure(n.sym, nil, n.info)
   var b: PNode
   var tc = c.transCon
   if sfBorrow in n.sym.flags and n.sym.kind in routineKinds: