closure iterators do have 'result'
This commit is contained in:
parent
9cc066d99d
commit
2162a71c93
1 changed files with 2 additions and 1 deletions
|
|
@ -1006,7 +1006,8 @@ proc activate(c: PContext, n: PNode) =
|
||||||
discard
|
discard
|
||||||
|
|
||||||
proc maybeAddResult(c: PContext, s: PSym, n: PNode) =
|
proc maybeAddResult(c: PContext, s: PSym, n: PNode) =
|
||||||
if s.typ.sons[0] != nil and s.kind != skIterator:
|
if s.typ.sons[0] != nil and not
|
||||||
|
(s.kind == skIterator and s.typ.callConv != ccClosure):
|
||||||
addResult(c, s.typ.sons[0], n.info, s.kind)
|
addResult(c, s.typ.sons[0], n.info, s.kind)
|
||||||
addResultNode(c, n)
|
addResultNode(c, n)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue