summary refs log tree commit diff stats
path: root/tests/array/troof3.nim
blob: 4b6e2222333330a9b4dbcdd987f1a45853abf2c6 (plain) (blame)
1
2
3
4
5
6
7
8
discard """
  errormsg: "invalid context for '^' as len!=high+1 for 'a'"
  line: "8"
"""

var a: array[1..3, string]

echo a[^1]