summary refs log tree commit diff stats
path: root/tests/range/t19678.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/range/t19678.nim')
-rw-r--r--tests/range/t19678.nim17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/range/t19678.nim b/tests/range/t19678.nim
new file mode 100644
index 000000000..88f7eff89
--- /dev/null
+++ b/tests/range/t19678.nim
@@ -0,0 +1,17 @@
+discard """
+  cmd: "nim check --hints:off $file"
+  errormsg: ""
+  nimout: '''
+t19678.nim(13, 13) Error: range of string is invalid
+
+
+
+'''
+"""
+
+case "5":
+  of "0" .. "9":
+    discard
+  else:
+    discard
+