mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-05 05:24:49 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -22,6 +22,8 @@ proc verboseOpen(graph: ModuleGraph; s: PSym; idgen: IdGenerator): PPassContext
|
||||
# xxx consider either removing this or keeping for documentation for how to add a pass
|
||||
result = VerboseRef(config: graph.config, idgen: idgen)
|
||||
|
||||
import std/objectdollar
|
||||
|
||||
proc verboseProcess(context: PPassContext, n: PNode): PNode =
|
||||
# called from `process` in `processTopLevelStmt`.
|
||||
result = n
|
||||
|
||||
Reference in New Issue
Block a user