Nim/tests/errmsgs/t10489_b.nim
Arne Döring 6b9a139f7f
error message for accidental use of macro (#10490)
* error message for accidental use of macro
2019-02-19 12:21:42 +01:00

9 lines
136 B
Nim

discard """
errormsg: "cannot assign macro symbol to constant here"
line: 9
"""
macro m(body: untyped): untyped =
body
const x2 = m