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

This reverts commit ae688aa7f5.
This commit is contained in:
narimiran
2021-03-22 11:52:22 +01:00
parent d85b7dde7b
commit 5ea5d82507
4 changed files with 21 additions and 38 deletions

View File

@@ -75,14 +75,3 @@ 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 RangeError:
success = true
doAssert success, "conversion should fail at runtime"