-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
copy!(::AbstractSet, ::AbstractSet)
behaves incorrectly under aliasing (also AbstractDict)
#41268
Comments
yurivish
changed the title
Jun 18, 2021
copy!(::AbstractSet, ::AbstractSet)
behaves incorrectly under aliasingcopy!(::AbstractSet, ::AbstractSet)
behaves incorrectly under aliasing (and so does Dict)
yurivish
changed the title
Jun 18, 2021
copy!(::AbstractSet, ::AbstractSet)
behaves incorrectly under aliasing (and so does Dict)copy!(::AbstractSet, ::AbstractSet)
behaves incorrectly under aliasing (also AbstractDict)
staticfloat
pushed a commit
to JuliaCI/julia-buildkite-testing
that referenced
this issue
Mar 2, 2022
LilithHafner
pushed a commit
to LilithHafner/julia
that referenced
this issue
Mar 8, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mutating copy on abstract sets is implemented as
union!(empty!(dst), src)
:julia/base/abstractset.jl
Line 6 in 6dfa690
This fails when copying a
Set
to itself — arguments are evaluated from left to right and the set is emptied and returned.The same behavior exists for
Dict
s:julia/base/abstractdict.jl
Line 158 in 61ae86d
The text was updated successfully, but these errors were encountered: