This commit is contained in:
Araq 2013-12-01 17:02:56 +01:00
commit 5dcfa97fb9

View file

@ -1087,6 +1087,8 @@ proc semIterator(c: PContext, n: PNode): PNode =
# -- at least for 0.9.2. # -- at least for 0.9.2.
if s.typ.callConv == ccClosure: if s.typ.callConv == ccClosure:
incl(s.typ.flags, tfCapturesEnv) incl(s.typ.flags, tfCapturesEnv)
else:
s.typ.callConv = ccInline
when false: when false:
if s.typ.callConv != ccInline: if s.typ.callConv != ccInline:
s.typ.callConv = ccClosure s.typ.callConv = ccClosure