summary refs log tree commit diff stats
path: root/tests/errmsgs/t22852.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errmsgs/t22852.nim')
-rw-r--r--tests/errmsgs/t22852.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/errmsgs/t22852.nim b/tests/errmsgs/t22852.nim
new file mode 100644
index 000000000..7c352a49c
--- /dev/null
+++ b/tests/errmsgs/t22852.nim
@@ -0,0 +1,9 @@
+discard """
+  exitcode: 1
+  outputsub: '''
+Error: unhandled exception: value out of range: -2 notin 0 .. 9223372036854775807 [RangeDefect]
+'''
+"""
+
+# bug #22852
+echo [0][2..^2]