fixes #2007
This commit is contained in:
parent
164ebb6762
commit
1a2bda45ec
3 changed files with 63 additions and 5 deletions
|
|
@ -162,9 +162,9 @@ proc addHiddenParam(routine: PSym, param: PSym) =
|
|||
# some nkEffect node:
|
||||
param.position = routine.typ.n.len-1
|
||||
addSon(params, newSymNode(param))
|
||||
incl(routine.typ.flags, tfCapturesEnv)
|
||||
#incl(routine.typ.flags, tfCapturesEnv)
|
||||
assert sfFromGeneric in param.flags
|
||||
#echo "produced environment: ", param.id, " for ", routine.name.s
|
||||
#echo "produced environment: ", param.id, " for ", routine.id
|
||||
|
||||
proc getHiddenParam(routine: PSym): PSym =
|
||||
let params = routine.ast.sons[paramsPos]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue