Merge branch 'araq' of github.com:nim-lang/Nim into araq
This commit is contained in:
commit
053b0ad6f3
13 changed files with 49 additions and 165 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