diff options
author | metagn <metagngn@gmail.com> | 2022-08-24 10:44:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-24 09:44:16 +0200 |
commit | b8dc58d8843af7dbd0ee2f3274e0d4cf18391dd2 (patch) | |
tree | 78c2cf31185875c855de1f1457daaefbaadd930e /compiler/ast.nim | |
parent | 9d9ecc3c1d774a71b4b866d7e503b25c307e7cbf (diff) | |
download | Nim-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.nim | 3 |
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 |