diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-07-29 11:11:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-29 11:11:58 +0200 |
commit | a3a87cdb298d7166846133bca5d56f055717474c (patch) | |
tree | 4df14ad933f8c51100d5f57e06279e573838c2b8 /tests/misc/tunsignedconv.nim | |
parent | b2a1944587bd23f87d05ed20cf33dd11c4c86e26 (diff) | |
download | Nim-a3a87cdb298d7166846133bca5d56f055717474c.tar.gz |
fixes #14616 [backport:1.2] (#15109)
Diffstat (limited to 'tests/misc/tunsignedconv.nim')
-rw-r--r-- | tests/misc/tunsignedconv.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/misc/tunsignedconv.nim b/tests/misc/tunsignedconv.nim index 0e5fc43db..07fc03e59 100644 --- a/tests/misc/tunsignedconv.nim +++ b/tests/misc/tunsignedconv.nim @@ -59,3 +59,13 @@ discard $(x1,) # bug #13698 let n: csize = 1 # xxx should that be csize_t or is that essential here? doAssert $n.int32 == "1" + +# bug #14616 + +let limit = 1'u64 + +let rangeVar = 0'u64 ..< limit + +doAssert repr(rangeVar) == """[a = 0, +b = 0] +""" |