next steps to produce working closure iterators

This commit is contained in:
Andreas Rumpf 2016-01-03 15:23:07 +01:00
commit 1ad69be988
3 changed files with 111 additions and 68 deletions

View file

@ -1966,6 +1966,8 @@ proc expr(p: BProc, n: PNode, d: var TLoc) =
genProc(p.module, sym)
putLocIntoDest(p, d, sym.loc)
of skProc, skConverter, skIterator:
#if sym.kind == skIterator:
# echo renderTree(sym.getBody, {renderIds})
if sfCompileTime in sym.flags:
localError(n.info, "request to generate code for .compileTime proc: " &
sym.name.s)