fixes #696
This commit is contained in:
parent
387b7d857d
commit
5dcfa97fb9
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue