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

@ -5,7 +5,7 @@ discard """
import
macros, strutils
macro test_macro*(s: string, n: stmt): stmt {.immediate.} =
macro test_macro*(s: string, n: untyped): untyped =
result = newNimNode(nnkStmtList)
var ass : NimNode = newNimNode(nnkAsgn)
add(ass, newIdentNode("str"))
@ -16,4 +16,3 @@ when isMainModule:
test_macro(str):
var i : integer = 123
echo str