summary refs log tree commit diff stats
path: root/tests/sets
diff options
context:
space:
mode:
authorOscar NihlgÄrd <oscarnihlgard@gmail.com>2018-04-10 10:38:16 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-04-10 10:38:16 +0200
commit427490a845afa13c460d71c506994a24aae900c8 (patch)
treecba7b2fbd228541a6c9aa9653aa9c5d54f3b8e4a /tests/sets
parent992300b30057e2b3b489b90fb0e7011607e3e8cf (diff)
downloadNim-427490a845afa13c460d71c506994a24aae900c8.tar.gz
Fix compile time set cardinality (#7558)
Diffstat (limited to 'tests/sets')
-rw-r--r--tests/sets/tsets.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/sets/tsets.nim b/tests/sets/tsets.nim
index 53a955af8..96d5debc7 100644
--- a/tests/sets/tsets.nim
+++ b/tests/sets/tsets.nim
@@ -202,3 +202,7 @@ var
 #import compiler.msgs
 
 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