diff options
Diffstat (limited to 'tests/array/troof3.nim')
-rw-r--r-- | tests/array/troof3.nim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/array/troof3.nim b/tests/array/troof3.nim new file mode 100644 index 000000000..4b6e22223 --- /dev/null +++ b/tests/array/troof3.nim @@ -0,0 +1,8 @@ +discard """ + errormsg: "invalid context for '^' as len!=high+1 for 'a'" + line: "8" +""" + +var a: array[1..3, string] + +echo a[^1] |