Skip to content

Commit 80e03a1

Browse files
committed
one less method static parameter
1 parent b7164cd commit 80e03a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/promotion.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ function _promote_type_binary(::Type{T}, ::Type{S}, recursion_depth_limit::Tuple
340340
@noinline
341341
throw(_promote_type_binary_detected_infinite_recursion_exception)
342342
end
343-
type_is_bottom(::Type{X}) where {X} = X === Bottom
343+
type_is_bottom(X::Type) = X <: Bottom
344344
detect_loop(::Type{A}, ::Type{B}) where {A, B} = _types_are_equal(T, A) && _types_are_equal(S, B)
345345
if type_is_bottom(T)
346346
return S

0 commit comments

Comments
 (0)