Files
Nim/tests/errmsgs/tnnodeindexkind.nim
2019-09-08 20:31:22 +02:00

9 lines
159 B
Nim

discard """
errormsg: "cannot set child of node kind: nnkStrLit"
line: 7
"""
import macros
macro t(x: untyped): untyped =
x[0] = newEmptyNode()
t("abc")