diff options
author | Araq <rumpf_a@web.de> | 2015-09-10 15:57:57 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-09-12 11:07:48 +0200 |
commit | 1562f74500f50ed2eb9a6f114ef1aa65d6d3962b (patch) | |
tree | bb41968b7d2c0fcb8fd9423c2cbba1509817f434 /compiler | |
parent | afc891de6524844521a86b6568378bc19ef8dead (diff) | |
download | Nim-1562f74500f50ed2eb9a6f114ef1aa65d6d3962b.tar.gz |
implicit return types for iterators are now deprecated
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/semtypes.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index 5ae3d16c0..2ee17fcaf 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -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 |