From ad64b66df1b20c78280251138345727ed8033ccd Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 29 Jun 2017 20:41:48 +0200 Subject: [PATCH] closes #5379 --- tests/js/trefbyvar.nim | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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][]