From 77222b2aaddac5deeb1e68b750dae255fa095c6e Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 2 Nov 2011 02:36:01 +0100 Subject: fixes #59 --- tests/reject/tenumitems.nim | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/reject/tenumitems.nim (limited to 'tests') 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() + + -- cgit 1.4.1-2-gfad0