diff options
author | LemonBoy <LemonBoy@users.noreply.github.com> | 2018-09-12 10:10:00 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-09-12 10:10:00 +0200 |
commit | b195204549fa99f18fcf1b4d5b757cc5aa7e9a6e (patch) | |
tree | 58a8d71c3dabb77ac3d37f73e28c205b3cae1eaa /tests | |
parent | 87955eaf3048bd6b69a988ac330f9d35b2cfa39e (diff) | |
download | Nim-b195204549fa99f18fcf1b4d5b757cc5aa7e9a6e.tar.gz |
Fix add(string, cstring) when the lhs is null (#8951)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/js/taddnilstr.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/js/taddnilstr.nim b/tests/js/taddnilstr.nim new file mode 100644 index 000000000..f5b934fdd --- /dev/null +++ b/tests/js/taddnilstr.nim @@ -0,0 +1,4 @@ +var x = "foo".cstring +var y: string +add(y, x) +doAssert y == "foo" |