-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
var x,y: seq[int]
y = @[]
shallow y
x = y
x.add 1
echo "x: ", x, ", y: ", youtput: x: @[1], y: @[1563515712, 0, 0, 2]
var x,y: string
y = ""
shallow y
x = y
x.add "42"
echo "x: ", x, ", y: ", youtput: x: 42, y:
The string test works fine when the code is in a block or the initial string has len > 0