tcommandequals.nim 205 B

123456789101112131415161718
  1. discard """
  2. output: '''
  3. 5
  4. '''
  5. """
  6. proc foo(a, b: int) =
  7. echo a + b
  8. foo a = 2, b = 3
  9. import macros
  10. macro bar(args: varargs[untyped]): untyped =
  11. doAssert args[0].kind == nnkExprEqExpr
  12. bar "a" = 1