fixes #15210 [backport:1.2] (#15237)

* fixes #15210 [backport:1.2]

* use patched version of bigints library

(cherry picked from commit ff13f8cc3c)
This commit is contained in:
Andreas Rumpf
2020-08-31 14:46:23 +02:00
committed by narimiran
parent 4e428c5a18
commit ae688aa7f5
4 changed files with 38 additions and 21 deletions

View File

@@ -75,3 +75,14 @@ let rangeVar = 0'u64 ..< limit
doAssert repr(rangeVar) == """[a = 0,
b = 0]
"""
# bug #15210
let a3 = not 0'u64
var success = false
try:
discard a3.int64
except RangeDefect:
success = true
doAssert success, "conversion should fail at runtime"