summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorLemonBoy <LemonBoy@users.noreply.github.com>2018-09-11 23:35:21 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-09-11 23:35:21 +0200
commit87955eaf3048bd6b69a988ac330f9d35b2cfa39e (patch)
tree2e5c54a7e452f954cd0d77f5b310bf477201dec3 /tests
parent8670f4911b742c87210b97150197080310b5ab58 (diff)
downloadNim-87955eaf3048bd6b69a988ac330f9d35b2cfa39e.tar.gz
Fix concat behaviour for uninitialized strings (#8950)
Diffstat (limited to 'tests')
-rw-r--r--tests/js/tstrconcat.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/js/tstrconcat.nim b/tests/js/tstrconcat.nim
new file mode 100644
index 000000000..37c8db687
--- /dev/null
+++ b/tests/js/tstrconcat.nim
@@ -0,0 +1,5 @@
+var x: string
+var y = "foo"
+add(x, y)
+y[0] = 'm'
+doAssert y == "moo" and x == "foo"