summary refs log tree commit diff stats
path: root/tests/errmsgs/tnnodeindexkind.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errmsgs/tnnodeindexkind.nim')
-rw-r--r--tests/errmsgs/tnnodeindexkind.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/errmsgs/tnnodeindexkind.nim b/tests/errmsgs/tnnodeindexkind.nim
new file mode 100644
index 000000000..9ea045e66
--- /dev/null
+++ b/tests/errmsgs/tnnodeindexkind.nim
@@ -0,0 +1,8 @@
+discard """
+  errormsg: "cannot set child of node kind: nnkStrLit"
+  line: 7
+"""
+import macros
+macro t(x: untyped): untyped =
+  x[0] = newEmptyNode()
+t("abc")