tmacroerrorproc.nim 236 B

1234567891011121314
  1. discard """
  2. file: "tmacroerrorproc.nim"
  3. line: 13
  4. errormsg: "Expected a node of kind nnkCharLit, got nnkCommand"
  5. """
  6. # issue #4915
  7. import macros
  8. macro mixer(n: typed): untyped =
  9. expectKind(n[0], nnkCharLit)
  10. mixer:
  11. echo "owh"