summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorcooldome <ariabushenko@gmail.com>2020-09-16 20:37:23 +0100
committerGitHub <noreply@github.com>2020-09-16 21:37:23 +0200
commitd938c6411e399ee1c936fa7b9ee3a1b53ab65791 (patch)
treec5e710365ab74eb5540e369510edf71a52b503c7 /tests
parent913ffbb92d0f0b9c5e7cf3fcbb446c38e890680e (diff)
downloadNim-d938c6411e399ee1c936fa7b9ee3a1b53ab65791.tar.gz
fix #15326 (#15341)
Diffstat (limited to 'tests')
-rw-r--r--tests/macros/tmacro2.nim8
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