summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-11-02 02:36:01 +0100
committerAraq <rumpf_a@web.de>2011-11-02 02:36:01 +0100
commit77222b2aaddac5deeb1e68b750dae255fa095c6e (patch)
treeef1e8f024791cf225f0d540f766e2a3260fbeeeb /tests
parent1f6725e59e4afe1f803b47fb272bfe45a9b1fcea (diff)
downloadNim-77222b2aaddac5deeb1e68b750dae255fa095c6e.tar.gz
fixes #59
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()
+
+