mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
it is IndexError, not IndexDefect, in 1.2
This commit is contained in:
@@ -598,6 +598,6 @@ block t18643:
|
||||
let b = 9999999
|
||||
try:
|
||||
echo a[b]
|
||||
except IndexDefect:
|
||||
except IndexError:
|
||||
caught = true
|
||||
doAssert caught, "IndexDefect not caught!"
|
||||
doAssert caught, "IndexError not caught!"
|
||||
|
||||
Reference in New Issue
Block a user