Skip to content

Commit 011d7a1

Browse files
committed
fix effect inference issues: more specialization
1 parent 55d5921 commit 011d7a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

base/promotion.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,9 +445,9 @@ macro _promote_type_binary_step()
445445
esc(e)
446446
end
447447

448-
function _promote_type_binary(T::Type, S::Type)
449-
T_initial = T
450-
S_initial = S
448+
function _promote_type_binary(::Type{T_initial}, ::Type{S_initial}) where {T_initial, S_initial}
449+
T = T_initial
450+
S = S_initial
451451

452452
@_promote_type_binary_step
453453
@_promote_type_binary_step

0 commit comments

Comments
 (0)