* fix #15706 Underflow not detected when using dec on distinct ranges * fix #15846 first, jsgen even doesn't care of range in this op
This commit is contained in:
parent
8f7a013cc7
commit
c07807bedf
2 changed files with 7 additions and 1 deletions
6
tests/overflw/tdistinct_range.nim
Normal file
6
tests/overflw/tdistinct_range.nim
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
discard """
|
||||
outputsub: "Error: unhandled exception: over- or underflow [OverflowDefect]"
|
||||
exitcode: "1"
|
||||
"""
|
||||
var x: distinct range[0..5]
|
||||
dec(x)
|
||||
Loading…
Add table
Add a link
Reference in a new issue