parent
913ffbb92d
commit
d938c6411e
2 changed files with 71 additions and 55 deletions
|
|
@ -26,3 +26,11 @@ const t = mac("HEllo World")
|
|||
echo s, " ", t
|
||||
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# issue #15326
|
||||
macro m(n:typed):auto =
|
||||
result = n
|
||||
|
||||
proc f[T](x:T): T {.m.} = x
|
||||
|
||||
discard f(3)
|
||||
Loading…
Add table
Add a link
Reference in a new issue