summary refs log tree commit diff stats
path: root/tests/misc/tinvalidarrayaccess2.nim
blob: 0a07038344a8eece615bd12f286444da2342ddfe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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]