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

@ -11,7 +11,7 @@ static:
nodeB.strVal = "this is a different comment"
doAssert nodeA != nodeB
macro test(a: typed, b: typed): expr =
macro test(a: typed, b: typed): untyped =
newLit(a == b)
doAssert test(1, 1) == true
@ -29,10 +29,10 @@ var a, b: int
doAssert test(a, a) == true
doAssert test(a, b) == false
macro test2: expr =
macro test2: untyped =
newLit(bindSym"Obj" == bindSym"Obj")
macro test3: expr =
macro test3: untyped =
newLit(bindSym"Obj" == bindSym"Other")
doAssert test2() == true