summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-09-11 19:54:49 +0200
committerAraq <rumpf_a@web.de>2014-09-11 19:54:49 +0200
commit1791ab6385ee697b42d92b9dcd6cfc014d552558 (patch)
treeab34613d6d73bbe554e8ac741abd33cd3ba51ac7
parentc73142d8527308850c0d20f1d3a116b5629e93d2 (diff)
downloadNim-1791ab6385ee697b42d92b9dcd6cfc014d552558.tar.gz
fixes #665
-rw-r--r--compiler/lambdalifting.nim2
-rw-r--r--compiler/lowerings.nim1
2 files changed, 2 insertions, 1 deletions
diff --git a/compiler/lambdalifting.nim b/compiler/lambdalifting.nim
index 6c650eee3..62e13b9c4 100644
--- a/compiler/lambdalifting.nim
+++ b/compiler/lambdalifting.nim
@@ -949,7 +949,7 @@ proc liftLambdas*(fn: PSym, body: PNode): PNode =
       discard transformOuterProcBody(o, body, initIter(fn))
       result = ex
     finishEnvironments(o)
-    #if fn.name.s == "cbOuter":
+    #if fn.name.s == "parseLong":
     #  echo rendertree(result, {renderIds})
 
 proc liftLambdasForTopLevel*(module: PSym, body: PNode): PNode =
diff --git a/compiler/lowerings.nim b/compiler/lowerings.nim
index ddfcb4f01..e1fb09e44 100644
--- a/compiler/lowerings.nim
+++ b/compiler/lowerings.nim
@@ -56,6 +56,7 @@ proc lowerTupleUnpacking*(n: PNode; owner: PSym): PNode =
   
   result.add newAsgnStmt(newSymNode(temp), value)
   for i in 0 .. n.len-3:
+    if n.sons[i].kind == nkSym: v.addVar(n.sons[i])
     result.add newAsgnStmt(n.sons[i], newTupleAccess(value, i))
 
 proc createObj*(owner: PSym, info: TLineInfo): PType =