summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-06-09 14:14:47 +0200
committerAraq <rumpf_a@web.de>2017-06-09 14:14:47 +0200
commit0f3e1f17e99fcebdf77fdc837b96c9810b1910bc (patch)
treed124b02c8cf32f8a96150e9f401f32e8d4a69a5f
parent72115c2b0996cd7b33ed0f161d4d1a997caaf1db (diff)
downloadNim-0f3e1f17e99fcebdf77fdc837b96c9810b1910bc.tar.gz
fixes #5959
-rw-r--r--compiler/sempass2.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/sempass2.nim b/compiler/sempass2.nim
index 96bdc6cba..c383f352f 100644
--- a/compiler/sempass2.nim
+++ b/compiler/sempass2.nim
@@ -218,12 +218,11 @@ proc listGcUnsafety(s: PSym; onlyWarning: bool; cycleCheck: var IntSet) =
       message(s.info, msgKind,
         "'$#' is not GC-safe as it calls '$#'" %
         [s.name.s, u.name.s])
-    of skParam:
+    of skParam, skForVar:
       message(s.info, msgKind,
         "'$#' is not GC-safe as it performs an indirect call via '$#'" %
         [s.name.s, u.name.s])
     else:
-      internalAssert u.kind == skUnknown
       message(u.info, msgKind,
         "'$#' is not GC-safe as it performs an indirect call here" % s.name.s)