From e88a0af494c0639c134b659ec0080b558c48e2ae Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 1 Feb 2017 00:00:41 +0100 Subject: [PATCH] fix confusing line information for macros that produce errors --- compiler/vm.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/vm.nim b/compiler/vm.nim index 17bd2d85bd..7ce96f7dfc 100644 --- a/compiler/vm.nim +++ b/compiler/vm.nim @@ -1615,6 +1615,7 @@ proc evalMacroCall*(module: PSym; cache: IdentCache, n, nOrig: PNode, setupGlobalCtx(module, cache) var c = globalCtx + c.comesFromHeuristic.line = -1 c.callsite = nOrig let start = genProc(c, sym)