tinvalidarrayaccess.nim 169 B

123456789101112131415
  1. discard """
  2. errormsg: "index out of bounds"
  3. line: 11
  4. """
  5. type TTestArr = array[0..1, int16]
  6. var f: TTestArr
  7. f[0] = 30
  8. f[1] = 40
  9. f[2] = 50
  10. f[3] = 60
  11. echo(repr(f))