From 5dcfa97fb959eda3cb8a41e2bd39e998c30052c8 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 1 Dec 2013 17:02:56 +0100 Subject: [PATCH] fixes #696 --- compiler/semstmts.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/semstmts.nim b/compiler/semstmts.nim index da8ba50a86..a1805fdec0 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