* Fixes #11078 * Move to existing runnableExamples, update the expected html. * Remove second comment token.
This commit is contained in:
parent
9d5e8e55f9
commit
e64dde734b
3 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue