diff --git a/base/intfuncs.jl b/base/intfuncs.jl index 169bbe313a620..6e8def9e5c308 100644 --- a/base/intfuncs.jl +++ b/base/intfuncs.jl @@ -882,6 +882,7 @@ end Return true if and only if the extrema `typemax(T)` and `typemin(T)` are defined. """ hastypemax(::Base.BitIntegerType) = true +hastypemax(::Type{Bool}) = true hastypemax(::Type{T}) where {T} = applicable(typemax, T) && applicable(typemin, T) """