From 0f3e1f17e99fcebdf77fdc837b96c9810b1910bc Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 9 Jun 2017 14:14:47 +0200 Subject: [PATCH] fixes #5959 --- compiler/sempass2.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/sempass2.nim b/compiler/sempass2.nim index 96bdc6cba2..c383f352fa 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)