parent
0e6eb7d483
commit
499fa3f3dc
2 changed files with 14 additions and 0 deletions
11
tests/destructor/tv2_cast.nim
Normal file
11
tests/destructor/tv2_cast.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
discard """
|
||||
cmd: '''nim c --newruntime $file'''
|
||||
output: '''@[1]
|
||||
@[116, 101, 115, 116]'''
|
||||
"""
|
||||
|
||||
# bug #11018
|
||||
discard cast[seq[uint8]](@[1])
|
||||
discard cast[seq[uint8]]("test")
|
||||
echo cast[seq[uint8]](@[1])
|
||||
echo cast[seq[uint8]]("test")
|
||||
Loading…
Add table
Add a link
Reference in a new issue