summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-12-01 17:02:56 +0100
committerAraq <rumpf_a@web.de>2013-12-01 17:02:56 +0100
commit5dcfa97fb959eda3cb8a41e2bd39e998c30052c8 (patch)
tree24b25b1032fd521e084df861958c70856da6cdff /compiler/semstmts.nim
parent387b7d857dc6ce723e144b9a46abb1594051d939 (diff)
downloadNim-5dcfa97fb959eda3cb8a41e2bd39e998c30052c8.tar.gz
fixes #696
Diffstat (limited to 'compiler/semstmts.nim')
-rw-r--r--compiler/semstmts.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim
index da8ba50a8..a1805fdec 100644
--- a/compiler/semstmts.nim
+++ b/compiler/semstmts.nim
@@ -1087,6 +1087,8 @@ proc semIterator(c: PContext, n: PNode): PNode =
   # -- at least for 0.9.2.
   if s.typ.callConv == ccClosure:
     incl(s.typ.flags, tfCapturesEnv)
+  else:
+    s.typ.callConv = ccInline
   when false:
     if s.typ.callConv != ccInline: 
       s.typ.callConv = ccClosure