mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
fix confusing line information for macros that produce errors
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user