Nim/tests/ccgbugs/tnocodegen_for_compiletime.nim
2017-07-25 09:28:23 +02:00

9 lines
204 B
Nim

# bug #1679
import macros, tables, hashes
proc hash(v: NimNode): Hash = 4 # performance is for suckers
macro test(body: untyped): typed =
var a = initCountTable[NimNode]()
a.inc(body)
test:
1 + 1