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 @@
import future
template tempo(s: expr) =
template tempo(s) =
s("arg")
tempo((s: string)->auto => echo(s))

View file

@ -17,10 +17,10 @@ proc IsVoid[T](): string =
const x = int is int
echo x, " ", float is float, " ", float is string, " ", IsVoid[void]()
template yes(e: expr): stmt =
template yes(e): void =
static: assert e
template no(e: expr): stmt =
template no(e): void =
static: assert(not e)
when false: