* fixes #15210 [backport:1.2] * use patched version of bigints library
This commit is contained in:
parent
a76ae8f795
commit
ff13f8cc3c
4 changed files with 38 additions and 21 deletions
|
|
@ -69,3 +69,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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue