Skip to content

Commit f67aaab

Browse files
committed
remove unnecessary boundstype method, add @deprecate Base.eltype
1 parent 4fcf410 commit f67aaab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IntervalSets.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ isclosedset(d::AbstractInterval) = isleftclosed(d) && isrightclosed(d)
6262
isopenset(d::AbstractInterval) = isleftopen(d) && isrightopen(d)
6363

6464
boundstype(i::AbstractInterval) = boundstype(typeof(i))
65-
boundstype(::Type{AbstractInterval{T}}) where {T} = T
6665
boundstype(::Type{I}) where {I<:AbstractInterval{T}} where T = T
66+
@deprecate Base.eltype(I::Type{<:AbstractInterval}) boundstype(I) false
6767

6868
convert(::Type{AbstractInterval}, i::AbstractInterval) = i
6969
convert(::Type{AbstractInterval{T}}, i::AbstractInterval{T}) where T = i

0 commit comments

Comments
 (0)