closes #5854
This commit is contained in:
parent
9c513de2ae
commit
50ae228e25
2 changed files with 14 additions and 0 deletions
13
tests/arithm/tsubrange.nim
Normal file
13
tests/arithm/tsubrange.nim
Normal file
|
|
@ -0,0 +1,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
|
||||
Loading…
Add table
Add a link
Reference in a new issue