summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/core/macros.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim
index 7e6e4ccc9..21eebfa6a 100644
--- a/lib/core/macros.nim
+++ b/lib/core/macros.nim
@@ -708,6 +708,8 @@ proc `$`*(node: NimNode): string {.compileTime.} =
     result = node.strVal
   of nnkSym:
     result = $node.symbol
+  of nnkOpenSymChoice, nnkClosedSymChoice:
+    result = $node[0]
   else:
     badNodeKind node.kind, "$"