diff --git a/src/Interval.jl b/src/Interval.jl index 7d52341607..de152181a7 100644 --- a/src/Interval.jl +++ b/src/Interval.jl @@ -77,7 +77,8 @@ struct Interval{N<:Real, IN <: IA.AbstractInterval{N}} <: AbstractPointSymmetric dat::IN end # type-less convenience constructor -Interval{N, IN <: IA.AbstractInterval{N}}(interval::IN) = Interval{N, IN}(interval) +Interval(interval::IN) where {N, IN <: IA.AbstractInterval{N}} = Interval{N, IN}(interval) + # TODO: adapt show method # constructor that takes two numbers