Skip to content

Commit 9be6094

Browse files
authored
explicitly qualify Bool while adding method (#699)
Prevent name ambiguity warning during precompilation on nightly Julia. See: * JuliaLang/julia#25744 * JuliaLang/julia#57290 * JuliaLang/julia#57311
1 parent 8d906d5 commit 9be6094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/intervals/exact_literals.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Base.promote_rule(::Type{ExactReal{T}}, ::Type{Interval{S}}) where {T<:Real,S<:N
110110

111111
# to Real
112112

113-
Bool(x::ExactReal) = convert(Bool, x) # needed to resolve ambiguity
113+
Base.Bool(x::ExactReal) = convert(Bool, x) # needed to resolve ambiguity
114114
(::Type{T})(x::ExactReal) where {T<:Real} = convert(T, x)
115115
Interval{T}(x::ExactReal) where {T<:NumTypes} = convert(Interval{T}, x) # needed to resolve ambiguity
116116
Interval(x::ExactReal) = Interval{promote_numtype(numtype(x.value), numtype(x.value))}(x) # needed to resolve ambiguity

0 commit comments

Comments
 (0)