diff options
Diffstat (limited to 'tests/macros/tidgen.nim')
-rw-r--r-- | tests/macros/tidgen.nim | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/macros/tidgen.nim b/tests/macros/tidgen.nim deleted file mode 100644 index 2fe9e0f82..000000000 --- a/tests/macros/tidgen.nim +++ /dev/null @@ -1,19 +0,0 @@ -discard """ - output: "3 4" -""" - -import macros - -# Test compile-time state in same module - -var gid {.compileTime.} = 3 - -macro genId(): expr = - result = newIntLitNode(gid) - inc gid - -proc Id1(): int {.compileTime.} = return genId() -proc Id2(): int {.compileTime.} = return genId() - -echo Id1(), " ", Id2() - |