summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-04-17 21:35:50 +0200
committerAraq <rumpf_a@web.de>2019-04-17 21:35:50 +0200
commitfb3681b42543639e67a5b1d8dd60412e354b7a46 (patch)
treefb699a531a7270c5bce0fd334c5ea3a83e25261c
parent7640a230fc6166bb7fcc18bcab4251d7f6dc6caf (diff)
downloadNim-fb3681b42543639e67a5b1d8dd60412e354b7a46.tar.gz
make the CIs happy
-rw-r--r--compiler/sempass2.nim2
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)