Nim/tests/errmsgs/t10489_a.nim
Neelesh Chandola 7ebb2baa6c Assigning template to var/let/const gives a proper error (#12851)
* Assigning template to var/let/const gives a proper error

* Fix style
2019-12-09 08:19:40 +00:00

9 lines
165 B
Nim

discard """
errormsg: "cannot assign macro 'm' to 'x1'. Did you mean to call the macro with '()'?"
line: 9
"""
macro m(body: untyped): untyped =
body
let x1 = m