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-10 15:57:57 +0200
commit63cdcb2be188cfe613edbbcca58e193973b7b9f3 (patch)
tree1f836d046774d0d05ddcf211020e72b5ca6b569a /compiler
parent34ab1d3e340635620d41ea1b0250830971648dda (diff)
downloadNim-63cdcb2be188cfe613edbbcca58e193973b7b9f3.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