This commit is contained in:
Araq 2015-01-11 13:51:30 +01:00
commit 9d0ae03918
4 changed files with 30 additions and 7 deletions

View file

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