fixes #2659
This commit is contained in:
parent
91e9cb64e9
commit
3d7c57db88
4 changed files with 34 additions and 3 deletions
|
|
@ -207,7 +207,7 @@ proc newAsgnStmt(le, ri: PNode, info: TLineInfo): PNode =
|
|||
result.sons[0] = le
|
||||
result.sons[1] = ri
|
||||
|
||||
proc makeClosure(prc: PSym; env: PNode; info: TLineInfo): PNode =
|
||||
proc makeClosure*(prc: PSym; env: PNode; info: TLineInfo): PNode =
|
||||
result = newNodeIT(nkClosure, info, prc.typ)
|
||||
result.add(newSymNode(prc))
|
||||
if env == nil:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue