This commit is contained in:
Andreas Rumpf 2016-01-04 03:10:09 +01:00
commit 3d7c57db88
4 changed files with 34 additions and 3 deletions

View file

@ -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: