Remove expr/stmt (#5857)
This commit is contained in:
parent
52ff244d5d
commit
000b8afd26
168 changed files with 497 additions and 529 deletions
|
|
@ -8,7 +8,7 @@ true'''
|
|||
|
||||
import macros
|
||||
|
||||
macro thirteen(args: varargs[expr]): expr =
|
||||
macro thirteen(args: varargs[untyped]): int =
|
||||
result = newIntLitNode(13)
|
||||
|
||||
doAssert(13==thirteen([1,2])) # works
|
||||
|
|
@ -22,7 +22,8 @@ echo "success"
|
|||
# bug #2545
|
||||
|
||||
import macros
|
||||
macro test(e: varargs[untyped]): expr = bindSym"true"
|
||||
macro test(e: varargs[untyped]): untyped =
|
||||
bindSym"true"
|
||||
|
||||
echo test(a)
|
||||
echo test(fake=90, arguments=80, also="false", possible=true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue