diff options
author | cooldome <ariabushenko@gmail.com> | 2020-09-16 20:37:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-16 21:37:23 +0200 |
commit | d938c6411e399ee1c936fa7b9ee3a1b53ab65791 (patch) | |
tree | c5e710365ab74eb5540e369510edf71a52b503c7 /tests | |
parent | 913ffbb92d0f0b9c5e7cf3fcbb446c38e890680e (diff) | |
download | Nim-d938c6411e399ee1c936fa7b9ee3a1b53ab65791.tar.gz |
fix #15326 (#15341)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/macros/tmacro2.nim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/macros/tmacro2.nim b/tests/macros/tmacro2.nim index 72972c0c1..1ad63ec8c 100644 --- a/tests/macros/tmacro2.nim +++ b/tests/macros/tmacro2.nim @@ -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) \ No newline at end of file |