This commit is contained in:
Araq 2015-04-06 23:50:09 +02:00
commit 5bb3534f10
2 changed files with 16 additions and 2 deletions

View file

@ -0,0 +1,14 @@
discard """
output: '''253'''
"""
# bug #2427
import unsigned
var x = 0'u8
dec x # OverflowError
x -= 1 # OverflowError
x = x - 1 # No error
echo x