* Fixes #11078
* Move to existing runnableExamples, update the expected html.
* Remove second comment token.
This commit is contained in:
Jasper Jenkins 2019-04-23 05:20:27 -07:00 • committed by Andreas Rumpf
commit e64dde734b
3 changed files with 6 additions and 2 deletions

View file

@ -832,7 +832,7 @@ proc track(tracked: PEffects, n: PNode) =
createTypeBoundOps(tracked.c, it.typ, it.info)
let iterCall = n[n.len-2]
let loopBody = n[n.len-1]
if tracked.owner.kind != skMacro and iterCall.len > 1:
if tracked.owner.kind != skMacro and iterCall.safelen > 1:
# XXX this is a bit hacky:
if iterCall[1].typ != nil and iterCall[1].typ.skipTypes(abstractVar).kind notin {tyVarargs, tyOpenArray}:
createTypeBoundOps(tracked.c, iterCall[1].typ, iterCall[1].info)