diff options
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/sempass2.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/sempass2.nim b/compiler/sempass2.nim index 996735804..e5b12e228 100644 --- a/compiler/sempass2.nim +++ b/compiler/sempass2.nim @@ -834,7 +834,7 @@ proc track(tracked: PEffects, n: PNode) = let loopBody = n[n.len-1] if tracked.owner.kind != skMacro and iterCall.len > 1: # XXX this is a bit hacky: - if iterCall[1].typ.skipTypes(abstractVar).kind notin {tyVarargs, tyOpenArray}: + if iterCall[1].typ != nil and iterCall[1].typ.skipTypes(abstractVar).kind notin {tyVarargs, tyOpenArray}: createTypeBoundOps(tracked.c, iterCall[1].typ, iterCall[1].info) track(tracked, iterCall) track(tracked, loopBody) |