mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
(cherry picked from commit 685bf944aa)
This commit is contained in:
@@ -1352,7 +1352,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, "$"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user