parent
f4dbdd311f
commit
253e1b9e96
2 changed files with 9 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
discard """
|
||||
output: '''uint'''
|
||||
output: '''uint
|
||||
1'''
|
||||
"""
|
||||
|
||||
# Tests unsigned literals and implicit conversion between uints and ints
|
||||
|
|
@ -60,3 +61,7 @@ discard $x0
|
|||
|
||||
const x1 = cast[uint](-1)
|
||||
discard $(x1,)
|
||||
|
||||
# bug 13698
|
||||
let n: csize = 1
|
||||
echo n.int32
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue