parent
f2e8c39e85
commit
ce7f29e8e6
6 changed files with 31 additions and 22 deletions
|
|
@ -2,7 +2,6 @@ discard """
|
|||
cmd: '''nim c --newruntime $file'''
|
||||
output: '''@[1]
|
||||
@[116, 101, 115, 116]
|
||||
test
|
||||
@[1953719668, 875770417]'''
|
||||
"""
|
||||
|
||||
|
|
@ -13,7 +12,7 @@ echo cast[seq[uint8]](@[1])
|
|||
echo cast[seq[uint8]]("test")
|
||||
|
||||
discard cast[string](@[116'u8, 101, 115, 116])
|
||||
echo cast[string](@[116'u8, 101, 115, 116])
|
||||
#echo cast[string](@[116'u8, 101, 115, 116, 0])
|
||||
var a = cast[seq[uint32]]("test1234")
|
||||
a.setLen(2)
|
||||
echo a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue