minor codegen bugfix: don't use names for closures that are also mangled Nim names
This commit is contained in:
parent
4c5ecb46b0
commit
46b672a6c4
6 changed files with 17 additions and 17 deletions
|
|
@ -628,7 +628,7 @@ proc closureSetup(p: BProc, prc: PSym) =
|
|||
#echo "created environment: ", env.id, " for ", prc.name.s
|
||||
assignLocalVar(p, env)
|
||||
# generate cast assignment:
|
||||
linefmt(p, cpsStmts, "$1 = ($2) ClEnv;$n",
|
||||
linefmt(p, cpsStmts, "$1 = ($2) ClE_0;$n",
|
||||
rdLoc(env.loc), getTypeDesc(p.module, env.typ))
|
||||
|
||||
proc easyResultAsgn(n: PNode): PNode =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue