tcnstseq works again

This commit is contained in:
Araq 2013-11-07 00:25:54 +01:00
commit 4cda0861f5
5 changed files with 11 additions and 3 deletions

View file

@ -207,6 +207,8 @@ proc newCall(a, b: PSym): PNode =
proc addHiddenParam(routine: PSym, param: PSym) =
var params = routine.ast.sons[paramsPos]
# -1 is correct here as param.position is 0 based but we have at position 0
# some nkEffect node:
param.position = params.len-1
addSon(params, newSymNode(param))
incl(routine.typ.flags, tfCapturesEnv)