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