summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/reject/tenumitems.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/reject/tenumitems.nim b/tests/reject/tenumitems.nim
new file mode 100644
index 000000000..a0497fd59
--- /dev/null
+++ b/tests/reject/tenumitems.nim
@@ -0,0 +1,9 @@
+discard """
+  line: 7
+  errormsg: "a type has no value"
+"""
+
+type a = enum b,c,d
+a.items()
+
+