diff options
author | Oscar NihlgÄrd <oscarnihlgard@gmail.com> | 2018-04-10 10:38:16 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-04-10 10:38:16 +0200 |
commit | 427490a845afa13c460d71c506994a24aae900c8 (patch) | |
tree | cba7b2fbd228541a6c9aa9653aa9c5d54f3b8e4a /tests | |
parent | 992300b30057e2b3b489b90fb0e7011607e3e8cf (diff) | |
download | Nim-427490a845afa13c460d71c506994a24aae900c8.tar.gz |
Fix compile time set cardinality (#7558)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sets/tsets.nim | 4 |
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 |