summary refs log tree commit diff stats
path: root/tests/macros/texprcolonexpr.nim
blob: 3b2c86b7742f75d6622a2502dd0a922f959a02ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
discard """
  msg: '''
Infix
  Ident !"=>"
  Call
    Ident !"name"
    Ident !"a"
    ExprColonExpr
      Ident !"b"
      Ident !"cint"
  NilLit nil
'''
"""
import macros

macro def(x: stmt): stmt {.immediate.} =
  echo treeRepr(x)

def name(a, b:cint) => nil