literal array indices (#11424)
This commit is contained in:
parent
c99ce5051e
commit
8ee0f14ab6
5 changed files with 44 additions and 4 deletions
5
tests/array/tidx_lit_err3.nim
Normal file
5
tests/array/tidx_lit_err3.nim
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
discard """
|
||||
errormsg: "size of array exceeds range of index type 'range 2147483646..2147483647(int32)' by 1 elements"
|
||||
line: 5
|
||||
"""
|
||||
echo [high(int32)-1: 1, 2, 3]
|
||||
Loading…
Add table
Add a link
Reference in a new issue