summary refs log tree commit diff stats
path: root/tests/js/tstrconcat.nim
blob: 37c8db6871c429f8a671490fbbc69cd9b9d15e55 (plain) (blame)
1
2
3
4
5
var x: string
var y = "foo"
add(x, y)
y[0] = 'm'
doAssert y == "moo" and x == "foo"