File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,15 @@ isopenset(d::AbstractInterval) = isleftopen(d) && isrightopen(d)
63
63
64
64
boundstype (i:: AbstractInterval ) = boundstype (typeof (i))
65
65
boundstype (:: Type{I} ) where {I<: AbstractInterval{T} } where T = T
66
- @deprecate Base. eltype (I:: Type{<:AbstractInterval} ) boundstype (I) false
66
+
67
+ @static if VERSION < v " 1.9"
68
+ function Base. eltype (I:: Type{<:AbstractInterval} )
69
+ Base. depwarn (" `eltype` for `AbstractInterval` will be replaced with `boundstype` in the next breaking release (v0.8.0)." , :eltype )
70
+ boundstype (I)
71
+ end
72
+ else
73
+ @deprecate Base. eltype (I:: Type{<:AbstractInterval} ) boundstype (I) false
74
+ end
67
75
68
76
convert (:: Type{AbstractInterval} , i:: AbstractInterval ) = i
69
77
convert (:: Type{AbstractInterval{T}} , i:: AbstractInterval{T} ) where T = i
You can’t perform that action at this time.
0 commit comments