You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change https://go.dev/cl/417274 mentions this issue: x/exp/maps: Clone preserve nil in case it matters.
dmitshur
added
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
labels
Jul 13, 2022
The
x/exp/maps.Clone
function doesn't preservenil
the wayx/exp/slices.Clone
does.What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Cloned a
nil
map usingx/exp/maps.Clone
.What did you expect to see?
The cloned map is also
nil
What did you see instead?
The cloned map is an empty non-nil map.
The text was updated successfully, but these errors were encountered: