summary refs log tree commit diff stats
path: root/tests/js/tstrconcat.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/js/tstrconcat.nim')
-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"