summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorLemonBoy <LemonBoy@users.noreply.github.com>2018-09-12 10:10:00 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-09-12 10:10:00 +0200
commitb195204549fa99f18fcf1b4d5b757cc5aa7e9a6e (patch)
tree58a8d71c3dabb77ac3d37f73e28c205b3cae1eaa /tests
parent87955eaf3048bd6b69a988ac330f9d35b2cfa39e (diff)
downloadNim-b195204549fa99f18fcf1b4d5b757cc5aa7e9a6e.tar.gz
Fix add(string, cstring) when the lhs is null (#8951)
Diffstat (limited to 'tests')
-rw-r--r--tests/js/taddnilstr.nim4
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"