summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-06-29 20:41:48 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-06-29 20:41:48 +0200
commitad64b66df1b20c78280251138345727ed8033ccd (patch)
tree4378d2cda244dbdac9aeee6c28a1ceec4f29427d /tests
parentac63a9989289bd61542b9b50c25e57e0725383a7 (diff)
downloadNim-ad64b66df1b20c78280251138345727ed8033ccd.tar.gz
closes #5379
Diffstat (limited to 'tests')
-rw-r--r--tests/js/trefbyvar.nim10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/js/trefbyvar.nim b/tests/js/trefbyvar.nim
index 73ddbed9e..314a02543 100644
--- a/tests/js/trefbyvar.nim
+++ b/tests/js/trefbyvar.nim
@@ -3,7 +3,8 @@ discard """
 5
 0
 5
-@[1, 2]'''
+@[1, 2]
+~'''
 """
 
 # bug #2476
@@ -44,3 +45,10 @@ let a = View(data: new(seq[int]))
 a.data[] = @[1, 2]
 
 echo a.data[]
+
+# bug #5379
+var input = newSeq[ref string]()
+input.add(nil)
+input.add(new string)
+input[1][] = "~"
+echo input[1][]