We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
boundstype
@deprecate Base.eltype
1 parent 4fcf410 commit f67aaabCopy full SHA for f67aaab
src/IntervalSets.jl
@@ -62,8 +62,8 @@ isclosedset(d::AbstractInterval) = isleftclosed(d) && isrightclosed(d)
62
isopenset(d::AbstractInterval) = isleftopen(d) && isrightopen(d)
63
64
boundstype(i::AbstractInterval) = boundstype(typeof(i))
65
-boundstype(::Type{AbstractInterval{T}}) where {T} = T
66
boundstype(::Type{I}) where {I<:AbstractInterval{T}} where T = T
+@deprecate Base.eltype(I::Type{<:AbstractInterval}) boundstype(I) false
67
68
convert(::Type{AbstractInterval}, i::AbstractInterval) = i
69
convert(::Type{AbstractInterval{T}}, i::AbstractInterval{T}) where T = i
0 commit comments