summary refs log tree commit diff stats
path: root/compiler/lookups.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/lookups.nim')
-rw-r--r--compiler/lookups.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/lookups.nim b/compiler/lookups.nim
index f72b58ac6..4f413f472 100644
--- a/compiler/lookups.nim
+++ b/compiler/lookups.nim
@@ -364,7 +364,9 @@ proc openShadowScope*(c: PContext) =
 
 proc closeShadowScope*(c: PContext) =
   ## closes the shadow scope, but doesn't merge any of the symbols
-  c.closeScope
+  ## Does not check for unused symbols or missing forward decls since a macro
+  ## or template consumes this AST
+  rawCloseScope(c)
 
 proc mergeShadowScope*(c: PContext) =
   ## close the existing scope and merge in all defined symbols, this will also