type BelowFive = range[0 .. 4]
var health:BelowFive = 0
health = health.succ(100)
RunThis is not generating compile-time error? Is that a bug?
type BelowFive = range[0 .. 4]
var health:BelowFive = 0
health = health.succ(100)
RunThis is not generating compile-time error? Is that a bug?