From 5dcfa97fb959eda3cb8a41e2bd39e998c30052c8 Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 1 Dec 2013 17:02:56 +0100 Subject: fixes #696 --- compiler/semstmts.nim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/semstmts.nim') 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 -- cgit 1.4.1-2-gfad0