mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 03:02:31 +00:00
* fix #15706 Underflow not detected when using dec on distinct ranges * fix #15846 first, jsgen even doesn't care of range in this op
6 lines
145 B
Nim
6 lines
145 B
Nim
discard """
|
|
outputsub: "Error: unhandled exception: over- or underflow [OverflowDefect]"
|
|
exitcode: "1"
|
|
"""
|
|
var x: distinct range[0..5]
|
|
dec(x) |