diff options
Diffstat (limited to 'tests/errmsgs/t10489_a.nim')
-rw-r--r-- | tests/errmsgs/t10489_a.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/errmsgs/t10489_a.nim b/tests/errmsgs/t10489_a.nim new file mode 100644 index 000000000..7cfe0176c --- /dev/null +++ b/tests/errmsgs/t10489_a.nim @@ -0,0 +1,9 @@ +discard """ +errormsg: "cannot assign macro symbol to variable here" +line: 9 +""" + +macro m(body: untyped): untyped = + body + +let x1 = m |