fixes #1838
This commit is contained in:
parent
b5a8e34ae7
commit
9d0ae03918
4 changed files with 30 additions and 7 deletions
|
|
@ -939,7 +939,7 @@ proc semProcTypeNode(c: PContext, n, genericParams: PNode,
|
|||
r = semTypeNode(c, n.sons[0], nil)
|
||||
elif kind == skIterator:
|
||||
# XXX This is special magic we should likely get rid of
|
||||
r = newTypeS(tyAnything, c)
|
||||
r = newTypeS(tyExpr, c)
|
||||
|
||||
if r != nil:
|
||||
# turn explicit 'void' return type into 'nil' because the rest of the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue