diff options
author | Clyybber <darkmine956@gmail.com> | 2019-04-14 23:34:19 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-04-14 23:34:19 +0200 |
commit | 499fa3f3dc822eb0895116db84e3c63746d4e1a2 (patch) | |
tree | 65afcfa27d4d7e7544763c9343e6954995d65719 /tests/destructor | |
parent | 0e6eb7d483fe1b975bd51a4900946130edf506e7 (diff) | |
download | Nim-499fa3f3dc822eb0895116db84e3c63746d4e1a2.tar.gz |
Fixes #11018 (#11019)
Diffstat (limited to 'tests/destructor')
-rw-r--r-- | tests/destructor/tv2_cast.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/destructor/tv2_cast.nim b/tests/destructor/tv2_cast.nim new file mode 100644 index 000000000..1430b7521 --- /dev/null +++ b/tests/destructor/tv2_cast.nim @@ -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") |