This commit is contained in:
Araq
2014-04-06 17:26:20 +02:00
parent 034af8354d
commit cf7e83ecc5
3 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
discard """
output: '''success'''
"""
#bug #913
import macros
macro thirteen(args: varargs[expr]): expr =
result = newIntLitNode(13)
doAssert(13==thirteen([1,2])) # works
doAssert(13==thirteen(1,2)) # works
doAssert(13==thirteen(1,[2])) # does not work
doAssert(13==thirteen([1], 2)) # does not work
echo "success"