Remove expr/stmt (#5857)

This commit is contained in:
Arne Döring 2017-07-25 09:28:23 +02:00 • committed by Andreas Rumpf
commit 000b8afd26
168 changed files with 497 additions and 529 deletions

View file

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

View file

@ -59,7 +59,7 @@ let
((1,1), hiA),
((0,1), hiB)]
template odd*(i: int) : expr =
template odd*(i: int) : untyped =
(i and 1) != 0
proc vidx(hg: HexGrid; col, row: int; i: HexVtxIndex) : Index =