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

@ -2,7 +2,7 @@
var
lastId = 0
template genId*: expr =
template genId*: int =
bind lastId
inc(lastId)
lastId

View file

@ -6,7 +6,7 @@ discard """
proc p1(x: int8, y: int): int = return x + y
template tempBind(x, y: expr): expr =
template tempBind(x, y): untyped =
bind p1
p1(x, y)

View file

@ -8,7 +8,7 @@ discard """
proc p1(x: int8, y: int): int = return x + y
proc p1(x: int, y: int8): int = return x - y
template tempBind(x, y: expr): expr =
template tempBind(x, y): untyped =
(bind p1(x, y)) #ERROR_MSG ambiguous call
echo tempBind(1'i8, 2'i8)