appending two slices with default ends modifies base slice #37604
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, go1.14
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://play.golang.org/p/ys0shvSiHkW
What did you expect to see?
I expect that both append and slice[] operator don't modify the slice variable.
What did you see instead?
The text was updated successfully, but these errors were encountered: