Skip to content

Commit

Permalink
fix method ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Oct 1, 2018
1 parent f4b5fd8 commit f2207c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Interval.jl
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ The product of the intervals as a new `Interval` set.
*(x::Interval, y::Interval) = Interval(x.dat * y.dat)

"""
∈(v::AbstractVector, x::Interval)
∈(v::AbstractVector{N}, x::Interval{N}) where {N<:Real})
Return whether a vector is contained in the interval.
Expand All @@ -223,7 +223,7 @@ Return whether a vector is contained in the interval.
`true` iff `x` contains `v`'s first component.
"""
(v::AbstractVector, x::Interval) = v[1] x.dat
(v::AbstractVector{N}, x::Interval{N}) where {N<:Real} = v[1] x.dat

"""
∈(v::N, x::Interval) where {N}
Expand Down

0 comments on commit f2207c0

Please sign in to comment.