t23435.nim 240 B

12345678910111213
  1. discard """
  2. outputsub: "Error: unhandled exception: value out of range: -15 notin 0 .. 9223372036854775807 [RangeDefect]"
  3. exitcode: "1"
  4. """
  5. # bug #23435
  6. proc foo() =
  7. for _ in @[1, 3, 5]:
  8. discard "abcde"[25..<10]
  9. break
  10. foo()