Example:
julia> union(1:1, 2:2)
2-element Vector{Int64}:
1
2
julia> union!!(1:1, 2:2)
ERROR: CanonicalIndexError: setindex! not defined for UnitRange{Int64}
The problem seems to be
julia> BangBang.implements(push!, UnitRange)
true
which is a special case of
|
implements(::Mutator, ::Type{<:MaybeMutableContainer}) = true |