summary refs log tree commit diff stats
path: root/tests/parser/tcommandequals.nim
blob: f41b318acf44e94f0da2c6c4fa425e56f1cda946 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
discard """
  output: '''
5
'''
"""

proc foo(a, b: int) =
  echo a + b

foo a = 2, b = 3

import macros

macro bar(args: varargs[untyped]): untyped =
  doAssert args[0].kind == nnkExprEqExpr

bar "a" = 1