Skip to content

Commit e16163e

Browse files
committed
use similar implementation for is_bottom for consistency
1 parent 8c61d7a commit e16163e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base/promotion.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@ function promote_type(::Type{T}, ::Type{S}) where {T,S}
307307
normalized_type(::Type{Typ}) where {Typ} = Typ
308308
types_are_equal(::Type, ::Type) = false
309309
types_are_equal(::Type{Typ}, ::Type{Typ}) where {Typ} = true
310-
is_bottom(::Type{Typ}) where {Typ} = Typ <: Bottom
310+
is_bottom(::Type) = false
311+
is_bottom(::Type{Bottom}) = true
311312
left = T
312313
right = S
313314
for _ 1:1000

0 commit comments

Comments
 (0)