trecmacro.nim 243 B

123456789101112131415
  1. discard """
  2. errormsg: "recursive dependency: 'dump'"
  3. file: "trecmacro.nim"
  4. line: 8
  5. """
  6. macro dump(n: untyped): untyped =
  7. dump(n)
  8. if kind(n) == nnkNone:
  9. nil
  10. else:
  11. hint($kind(n))
  12. for i in countUp(0, len(n)-1):
  13. nil