summary refs log blame commit diff stats
path: root/tests/macros/texprcolonexpr.nim
blob: 59c79977175504e9b9393cd0c869a95202ebacaf (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                   
                       


                          
discard """
  msg: '''
Infix
  Ident !"=>"
  Call
    Ident !"name"
    Ident !"a"
    ExprColonExpr
      Ident !"b"
      Ident !"cint"
  NilLit nil
'''
"""
import macros

macro def(x): untyped =
  echo treeRepr(x)

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