Files
Nim/tests/errmsgs/t10489_a.nim
Neelesh Chandola 4c08e64e98 disallow typedesc in arrays & move existing checks to types.typeAllowedAux (#13261)
* disallow typedesc in arrays and move previous checks to types.typeAllowedAux
2020-05-29 11:48:15 +02:00

10 lines
222 B
Nim

discard """
errormsg: "invalid type: 'macro (body: untyped): untyped{.noSideEffect, gcsafe, locks: 0.}' for let. Did you mean to call the macro with '()'?"
line: 9
"""
macro m(body: untyped): untyped =
body
let x1 = m