This commit is contained in:
Araq 2014-09-11 19:54:49 +02:00
commit 1791ab6385
2 changed files with 2 additions and 1 deletions

View file

@ -949,7 +949,7 @@ proc liftLambdas*(fn: PSym, body: PNode): PNode =
discard transformOuterProcBody(o, body, initIter(fn)) discard transformOuterProcBody(o, body, initIter(fn))
result = ex result = ex
finishEnvironments(o) finishEnvironments(o)
#if fn.name.s == "cbOuter": #if fn.name.s == "parseLong":
# echo rendertree(result, {renderIds}) # echo rendertree(result, {renderIds})
proc liftLambdasForTopLevel*(module: PSym, body: PNode): PNode = proc liftLambdasForTopLevel*(module: PSym, body: PNode): PNode =

View file

@ -56,6 +56,7 @@ proc lowerTupleUnpacking*(n: PNode; owner: PSym): PNode =
result.add newAsgnStmt(newSymNode(temp), value) result.add newAsgnStmt(newSymNode(temp), value)
for i in 0 .. n.len-3: 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)) result.add newAsgnStmt(n.sons[i], newTupleAccess(value, i))
proc createObj*(owner: PSym, info: TLineInfo): PType = proc createObj*(owner: PSym, info: TLineInfo): PType =