This commit is contained in:
cooldome 2020-09-16 20:37:23 +01:00 • committed by GitHub
commit d938c6411e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 71 additions and 55 deletions

View file

@ -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)