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