mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-06 13:07:48 +00:00
workaround #23435 related to https://github.com/nim-lang/Nim/issues/22852 see also #23279
13 lines
240 B
Nim
13 lines
240 B
Nim
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()
|