implicit return types for iterators are now deprecated
This commit is contained in:
parent
afc891de65
commit
1562f74500
3 changed files with 3 additions and 1 deletions
|
|
@ -970,6 +970,7 @@ proc semProcTypeNode(c: PContext, n, genericParams: PNode,
|
|||
elif kind == skIterator:
|
||||
# XXX This is special magic we should likely get rid of
|
||||
r = newTypeS(tyExpr, c)
|
||||
message(n.info, warnDeprecated, "implicit return type for 'iterator'")
|
||||
|
||||
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