fixes #681
This commit is contained in:
parent
2dcbc6493a
commit
b3d759ca6d
2 changed files with 32 additions and 2 deletions
|
|
@ -2,7 +2,8 @@ discard """
|
|||
file: "tlenopenarray.nim"
|
||||
output: '''1
|
||||
0
|
||||
Whopie'''
|
||||
Whopie
|
||||
12'''
|
||||
"""
|
||||
|
||||
echo len([1_000_000]) #OUT 1
|
||||
|
|
@ -27,3 +28,14 @@ var w = TWidget(names: initQueue[string]())
|
|||
add(w.names, "Whopie")
|
||||
|
||||
for n in w.names: echo(n)
|
||||
|
||||
# bug #681
|
||||
|
||||
type TSomeRange = object
|
||||
hour: range[0..23]
|
||||
|
||||
var value: string
|
||||
var val12 = TSomeRange(hour: 12)
|
||||
|
||||
value = $(if val12.hour > 12: val12.hour - 12 else: val12.hour)
|
||||
echo value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue