diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-10-27 17:50:22 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-10-27 17:50:30 +0100 |
commit | 7192b13609eb945f3197aa97ad092e869504f273 (patch) | |
tree | 4c393b8a8485d87dbb288579f07e585b2ef8b3d7 /compiler/transf.nim | |
parent | cbbc2cc2375be203342c69beaf166274b436bf18 (diff) | |
download | Nim-7192b13609eb945f3197aa97ad092e869504f273.tar.gz |
some progress on bug #12443
Diffstat (limited to 'compiler/transf.nim')
-rw-r--r-- | compiler/transf.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/transf.nim b/compiler/transf.nim index b95733a37..5660bcd8c 100644 --- a/compiler/transf.nim +++ b/compiler/transf.nim @@ -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]) |