From fb3681b42543639e67a5b1d8dd60412e354b7a46 Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 17 Apr 2019 21:35:50 +0200 Subject: [PATCH] make the CIs happy --- compiler/sempass2.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)