This commit is contained in:
Andreas Rumpf 2017-02-23 19:47:09 +01:00
commit 22789a0bfc
4 changed files with 35 additions and 1 deletions

View file

@ -742,6 +742,8 @@ proc `$`*(node: NimNode): string {.compileTime.} =
result = $node.symbol
of nnkOpenSymChoice, nnkClosedSymChoice:
result = $node[0]
of nnkAccQuoted:
result = $node[0]
else:
badNodeKind node.kind, "$"