summary refs log tree commit diff stats
path: root/tests/macros/trecmacro.nim
blob: 28b6db530dd2e887eedca11255e1584640f1255f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
discard """
  file: "trecmacro.nim"
  line: 8
  errormsg: "recursive dependency: 'dump'"
"""

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