mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* Make index out of bounds more useful by including the 'bounds'. * fixes #9880 index out of bounds (remaining cases); revives #10228 * change err msg to: `index 3 not in 0 .. 1`
11 lines
182 B
Nim
11 lines
182 B
Nim
discard """
|
|
errormsg: "index 3 not in 0 .. 1"
|
|
line: 9
|
|
"""
|
|
|
|
# Note: merge in tinvalidarrayaccess.nim pending https://github.com/nim-lang/Nim/issues/9906
|
|
|
|
let a = [1,2]
|
|
echo a[3]
|
|
|