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

View File

@@ -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