some progress on bug #12443

This commit is contained in:
Andreas Rumpf 2019-10-27 17:50:22 +01:00
commit 7192b13609
5 changed files with 45 additions and 26 deletions

View file

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