summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authormetagn <10591326+metagn@users.noreply.github.com>2022-07-22 10:04:07 +0300
committerGitHub <noreply@github.com>2022-07-22 15:04:07 +0800
commit685bf944aac0b2ea7ce1360b56080f3d07037fc2 (patch)
tree467d36dafe7cfd1c31c8fe34d6b9faa77a29a483 /lib
parent1a9123eb90db68d037b5ba5ad11fa0e8534b83c8 (diff)
downloadNim-685bf944aac0b2ea7ce1360b56080f3d07037fc2.tar.gz
fix #20067, fix #18976 [backport] (#20069)
Diffstat (limited to 'lib')
-rw-r--r--lib/core/macros.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim
index b370aaa7b..ad87a0f64 100644
--- a/lib/core/macros.nim
+++ b/lib/core/macros.nim
@@ -1360,7 +1360,9 @@ proc `$`*(node: NimNode): string =
   of nnkOpenSymChoice, nnkClosedSymChoice:
     result = $node[0]
   of nnkAccQuoted:
-    result = $node[0]
+    result = ""
+    for i in 0 ..< node.len:
+      result.add(repr(node[i]))
   else:
     badNodeKind node, "$"