summary refs log tree commit diff stats
path: root/tests/array/tidx_lit_err3.nim
blob: 95922bc504f8cbcc4ba5958b86bfb386d0aa8037 (plain) (blame)
1
2
3
4
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]