Fix concat behaviour for uninitialized strings (#8950)

This commit is contained in:
LemonBoy 2018-09-11 23:35:21 +02:00 • committed by Andreas Rumpf
commit 87955eaf30
2 changed files with 17 additions and 10 deletions

5
tests/js/tstrconcat.nim Normal file
View file

@ -0,0 +1,5 @@
var x: string
var y = "foo"
add(x, y)
y[0] = 'm'
doAssert y == "moo" and x == "foo"