diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/stdlib/tmacros.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/stdlib/tmacros.nim b/tests/stdlib/tmacros.nim index 7ccb7e7c7..974594dee 100644 --- a/tests/stdlib/tmacros.nim +++ b/tests/stdlib/tmacros.nim @@ -323,3 +323,14 @@ block: discard m hello(12) + +block: + proc hello(x: int, y: typedesc) = + discard + + macro main = + let x = 12 + result = quote do: + `hello`(12, type(x)) + + main() |