Fixes #1093.
This commit is contained in:
parent
36fc1d9d72
commit
57cc8237f7
3 changed files with 26 additions and 10 deletions
19
tests/macros/texprcolonexpr.nim
Normal file
19
tests/macros/texprcolonexpr.nim
Normal file
|
|
@ -0,0 +1,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
|
||||
Loading…
Add table
Add a link
Reference in a new issue