summary refs log tree commit diff stats
path: root/tests/arithm/tsubrange.nim
blob: 9d60dbd1aa3c040c94273c003ed0ed48890a54ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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