summary refs log tree commit diff stats
path: root/compiler/ast.nim
diff options
context:
space:
mode:
authormetagn <metagngn@gmail.com>2022-08-24 10:44:16 +0300
committerGitHub <noreply@github.com>2022-08-24 09:44:16 +0200
commitb8dc58d8843af7dbd0ee2f3274e0d4cf18391dd2 (patch)
tree78c2cf31185875c855de1f1457daaefbaadd930e /compiler/ast.nim
parent9d9ecc3c1d774a71b4b866d7e503b25c307e7cbf (diff)
downloadNim-b8dc58d8843af7dbd0ee2f3274e0d4cf18391dd2.tar.gz
test removing dollar for objects out of system (#20242)
* test removing dollar for objects out of system

* test & fixes

* fix bootstrap

* use nimPreviewSlimSystem, test stdlib category

* fix test
Diffstat (limited to 'compiler/ast.nim')
-rw-r--r--compiler/ast.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/ast.nim b/compiler/ast.nim
index b84468167..2ad700121 100644
--- a/compiler/ast.nim
+++ b/compiler/ast.nim
@@ -747,6 +747,9 @@ type
     module*: int32
     item*: int32
 
+proc `$`*(x: ItemId): string =
+  "(module: " & $x.module & ", item: " & $x.item & ")"
+
 proc `==`*(a, b: ItemId): bool {.inline.} =
   a.item == b.item and a.module == b.module