Files
Nim/tests/arithm/tsubrange.nim
Andreas Rumpf 50ae228e25 closes #5854
2017-09-15 10:30:58 +02:00

14 lines
174 B
Nim

discard """
output: '''1'''
"""
# bug #5854
type
n16* = range[0'i16..high(int16)]
var level: n16 = 1
let maxLevel: n16 = 1
level = min(level + 2, maxLevel)
echo level