diff options
Diffstat (limited to 'tests/reject/tenumitems.nim')
-rw-r--r-- | tests/reject/tenumitems.nim | 9 |
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() + + |