Skip to content

Commit

Permalink
Solve Base.union! ambiguities
Browse files Browse the repository at this point in the history
  • Loading branch information
lbenet committed Oct 12, 2024
1 parent 2819244 commit 474376c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/intervals/real_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ for T ∈ (:BareInterval, :Interval)
throw(ArgumentError("`setdiff!` is purposely not supported for intervals. See instead `interiordiff`"))
end
end
Base.union!(::AbstractVector{S}, ::BareInterval, ::Interval, ::Any...) where {S} =
throw(ArgumentError("`union!` is purposely not supported for intervals. See instead `hull`"))
Base.union!(::AbstractVector{S}, ::Interval, ::BareInterval, ::Any...) where {S} =
throw(ArgumentError("`union!` is purposely not supported for intervals. See instead `hull`"))


# allow pointwise equality

Expand Down

0 comments on commit 474376c

Please sign in to comment.