tnnodeindexkind.nim 159 B

123456789
  1. discard """
  2. errormsg: "cannot set child of node kind: nnkStrLit"
  3. line: 7
  4. """
  5. import macros
  6. macro t(x: untyped): untyped =
  7. x[0] = newEmptyNode()
  8. t("abc")