Skip to content

Commit bce4da3

Browse files
committed
use types_are_identical where intended
1 parent 66d1615 commit bce4da3

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
@@ -331,7 +331,7 @@ function promote_type(::Type{T}, ::Type{S}) where {T,S}
331331
left = a
332332
right = b
333333
end
334-
if (left === right) || is_bottom(left)
334+
if types_are_identical(left, right) || is_bottom(left)
335335
right
336336
elseif is_bottom(right)
337337
left

0 commit comments

Comments
 (0)