summary refs log tree commit diff stats
path: root/tests/errmsgs/t23435.nim
blob: 5e2e4c82a70f2aa8dce1ff567e1602f98ec6050b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
discard """
  outputsub: "Error: unhandled exception: value out of range: -15 notin 0 .. 9223372036854775807 [RangeDefect]"
  exitcode: "1"
"""

# bug #23435
proc foo() =
  for _ in @[1, 3, 5]:
    discard "abcde"[25..<10]
    break

foo()