Skip to content

Commit c7f31bf

Browse files
committed
Move "pirating" promote_rule to IntervalSets
1 parent fc6da2c commit c7f31bf

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

REQUIRE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
julia 0.5
2-
IntervalSets
2+
IntervalSets 0.1
33
RangeArrays
44
Compat 0.19

src/intervals.jl

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
const Scalar = Union{Number, Dates.AbstractTime}
2121
Base.promote_rule{T<:Scalar}(::Type{ClosedInterval{T}}, ::Type{T}) = ClosedInterval{T}
2222
Base.promote_rule{T,S<:Scalar}(::Type{ClosedInterval{T}}, ::Type{S}) = ClosedInterval{promote_type(T,S)}
23-
Base.promote_rule{T,S}(::Type{ClosedInterval{T}}, ::Type{ClosedInterval{S}}) = ClosedInterval{promote_type(T,S)}
2423

2524
import Base: isless, <=, >=, ==, +, -, *, /, ^, //
2625
# TODO: Is this a total ordering? (antisymmetric, transitive, total)?

0 commit comments

Comments
 (0)