summary refs log tree commit diff stats
path: root/tests/errmsgs/ttupleindexoutofbounds.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errmsgs/ttupleindexoutofbounds.nim')
-rw-r--r--tests/errmsgs/ttupleindexoutofbounds.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/errmsgs/ttupleindexoutofbounds.nim b/tests/errmsgs/ttupleindexoutofbounds.nim
new file mode 100644
index 000000000..ae634dddb
--- /dev/null
+++ b/tests/errmsgs/ttupleindexoutofbounds.nim
@@ -0,0 +1,2 @@
+let a = (1, 2)[4] #[tt.Error
+              ^ invalid index 4 in subscript for tuple of length 2]#