summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-09-10 15:57:57 +0200
committerAraq <rumpf_a@web.de>2015-09-12 11:07:48 +0200
commit1562f74500f50ed2eb9a6f114ef1aa65d6d3962b (patch)
treebb41968b7d2c0fcb8fd9423c2cbba1509817f434 /compiler
parentafc891de6524844521a86b6568378bc19ef8dead (diff)
downloadNim-1562f74500f50ed2eb9a6f114ef1aa65d6d3962b.tar.gz
implicit return types for iterators are now deprecated
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semtypes.nim1
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