blob: b44e9f8c9f72589d80e3c887a1bd6191b885b88e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
# 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
|