From c2045d9dda09d2bde67c8b6ccd8f9195c89c3cb9 Mon Sep 17 00:00:00 2001 From: Neven Sajko Date: Thu, 27 Feb 2025 02:03:28 +0100 Subject: [PATCH] explicitly qualify `Bool` while adding method Prevent name ambiguity warning during precompilation on nightly Julia. See: * https://github.com/JuliaLang/julia/issues/25744 * https://github.com/JuliaLang/julia/issues/57290 * https://github.com/JuliaLang/julia/pull/57311 --- src/IntervalSets.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IntervalSets.jl b/src/IntervalSets.jl index cf156b5..8f5d3a4 100644 --- a/src/IntervalSets.jl +++ b/src/IntervalSets.jl @@ -356,8 +356,8 @@ function Base.OneTo{T}(i::TypedEndpointsInterval{:closed,:closed,I}) where {T<:I end Base.OneTo(i::TypedEndpointsInterval{:closed,:closed,I}) where {I<:Integer} = Base.OneTo{I}(i) -UnitRange{T}(i::TypedEndpointsInterval{:closed,:closed,I}) where {T<:Integer,I<:Integer} = UnitRange{T}(minimum(i), maximum(i)) -UnitRange(i::TypedEndpointsInterval{:closed,:closed,I}) where {I<:Integer} = UnitRange{I}(i) +Base.UnitRange{T}(i::TypedEndpointsInterval{:closed,:closed,I}) where {T<:Integer,I<:Integer} = UnitRange{T}(minimum(i), maximum(i)) +Base.UnitRange(i::TypedEndpointsInterval{:closed,:closed,I}) where {I<:Integer} = UnitRange{I}(i) range(i::TypedEndpointsInterval{:closed,:closed,I}) where {I<:Integer} = UnitRange{I}(i) """