diff options
Diffstat (limited to 'tests/errmsgs/t10489_b.nim')
-rw-r--r-- | tests/errmsgs/t10489_b.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/errmsgs/t10489_b.nim b/tests/errmsgs/t10489_b.nim new file mode 100644 index 000000000..df05f0e6e --- /dev/null +++ b/tests/errmsgs/t10489_b.nim @@ -0,0 +1,9 @@ +discard """ +errormsg: "invalid type: 'macro (body: untyped): untyped{.noSideEffect, gcsafe.}' for const. Did you mean to call the macro with '()'?" +line: 9 +""" + +macro m(body: untyped): untyped = + body + +const x2 = m |