diff options
author | LemonBoy <LemonBoy@users.noreply.github.com> | 2018-09-11 23:35:21 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-09-11 23:35:21 +0200 |
commit | 87955eaf3048bd6b69a988ac330f9d35b2cfa39e (patch) | |
tree | 2e5c54a7e452f954cd0d77f5b310bf477201dec3 /tests | |
parent | 8670f4911b742c87210b97150197080310b5ab58 (diff) | |
download | Nim-87955eaf3048bd6b69a988ac330f9d35b2cfa39e.tar.gz |
Fix concat behaviour for uninitialized strings (#8950)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/js/tstrconcat.nim | 5 |
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" |