summary refs log tree commit diff stats
path: root/tests/array/troof3.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/array/troof3.nim')
-rw-r--r--tests/array/troof3.nim8
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]