diff options
Diffstat (limited to 'tests/compile')
-rw-r--r-- | tests/compile/tmacrostmt.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/compile/tmacrostmt.nim b/tests/compile/tmacrostmt.nim index 69b49f692..d9c70197d 100644 --- a/tests/compile/tmacrostmt.nim +++ b/tests/compile/tmacrostmt.nim @@ -15,3 +15,12 @@ else: return tkUnknown case_token: inc i + +#bug #488 + +macro foo: stmt = + var exp = newCall("whatwhat", newIntLitNode(1)) + if compiles(getAst(exp)): return exp + else: echo "Does not compute!" + +foo() |