summary refs log blame commit diff stats
path: root/tests/macros/trecmacro.nim
blob: 69ebe3da3378018e2f1ed8053989996003e15cea (plain) (tree)
1
2
3
4
5
6
7





                                          
                                 






                                  
discard """
  file: "trecmacro.nim"
  line: 8
  errormsg: "recursive dependency: 'dump'"
"""

macro dump(n: untyped): untyped =
  dump(n)
  if kind(n) == nnkNone:
    nil
  else:
    hint($kind(n))
    for i in countUp(0, len(n)-1):
      nil