bugfix: invoking a generic iterator twice triggers a code gen bug (titer2)
This commit is contained in:
parent
8b6f9ef5e8
commit
c3f11d1637
5 changed files with 24 additions and 19 deletions
|
|
@ -105,6 +105,9 @@ proc generateInstance(c: PContext, fn: PSym, pt: TIdTable,
|
|||
addResult(c, result.typ.sons[0], n.info)
|
||||
addResultNode(c, n)
|
||||
n.sons[codePos] = semStmtScope(c, n.sons[codePos])
|
||||
if fn.kind == skIterator:
|
||||
# XXX Bad hack for tests/titer2:
|
||||
n.sons[codePos] = transform(c.module, n.sons[codePos])
|
||||
popProcCon(c)
|
||||
#echo "code instantiated ", result.name.s
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue