tinvalidarrayaccess2.nim 221 B

1234567891011
  1. discard """
  2. errormsg: "conversion from int literal(3) to range 0..1(int) is invalid"
  3. line: 9
  4. """
  5. # Note: merge in tinvalidarrayaccess.nim pending https://github.com/nim-lang/Nim/issues/9906
  6. let a = [1,2]
  7. echo a[3]