some progress on bug #12443
This commit is contained in:
parent
cbbc2cc237
commit
7192b13609
5 changed files with 45 additions and 26 deletions
|
|
@ -608,7 +608,7 @@ proc transformFor(c: PTransf, n: PNode): PTransNode =
|
|||
return result
|
||||
c.breakSyms.add(labl)
|
||||
if call.kind notin nkCallKinds or call.sons[0].kind != nkSym or
|
||||
call.sons[0].typ.callConv == ccClosure:
|
||||
call.sons[0].typ.skipTypes(abstractInst).callConv == ccClosure:
|
||||
result[1] = n.PTransNode
|
||||
result[1][^1] = transformLoopBody(c, n[^1])
|
||||
result[1][^2] = transform(c, n[^2])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue