fixes #1334
This commit is contained in:
parent
7ef076a04a
commit
ebe313e627
3 changed files with 40 additions and 13 deletions
|
|
@ -3,7 +3,8 @@ discard """
|
|||
output: '''1
|
||||
0
|
||||
Whopie
|
||||
12'''
|
||||
12
|
||||
1.7'''
|
||||
"""
|
||||
|
||||
echo len([1_000_000]) #OUT 1
|
||||
|
|
@ -39,3 +40,9 @@ var val12 = TSomeRange(hour: 12)
|
|||
|
||||
value = $(if val12.hour > 12: val12.hour - 12 else: val12.hour)
|
||||
echo value
|
||||
|
||||
# bug #1334
|
||||
|
||||
var ys = @[4.1, 5.6, 7.2, 1.7, 9.3, 4.4, 3.2]
|
||||
#var x = int(ys.high / 2) #echo ys[x] # Works
|
||||
echo ys[int(ys.high / 2)] # Doesn't work
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue