summary refs log tree commit diff stats
path: root/tests/sets
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-08-04 20:10:03 +0200
committerAraq <rumpf_a@web.de>2018-08-04 20:10:03 +0200
commit96c6c82d5592a7a19006c0fb161a74178cea9700 (patch)
treea7124462432dda8345374a315130b83fd6ec4bc9 /tests/sets
parent1fa23e347eb6e61b7f0f1999c6802a60fdf213a8 (diff)
downloadNim-96c6c82d5592a7a19006c0fb161a74178cea9700.tar.gz
fixes #8425
Diffstat (limited to 'tests/sets')
-rw-r--r--tests/sets/tsets.nim10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/sets/tsets.nim b/tests/sets/tsets.nim
index 96d5debc7..13a5f54e6 100644
--- a/tests/sets/tsets.nim
+++ b/tests/sets/tsets.nim
@@ -205,4 +205,12 @@ echo warnUninit in gNotes
 
 # 7555
 doAssert {-1.int8, -2, -2}.card == 2
-doAssert {1, 2, 2, 3..5, 4..6}.card == 6
\ No newline at end of file
+doAssert {1, 2, 2, 3..5, 4..6}.card == 6
+
+type Foo = enum
+  Foo1 = 0
+  Foo2 = 1
+  Foo3 = 3
+
+let x = { Foo1, Foo2 }
+# bug #8425