@@ -331,7 +331,6 @@ const _promote_type_binary_recursion_depth_limit = let n = nothing # recursion
331331end
332332
333333function promote_type (:: Type{T} , :: Type{S} ) where {T,S}
334- @inline
335334 # Try promote_rule in both orders. Typically only one is defined,
336335 # and there is a fallback returning Bottom below, so the common case is
337336 # promote_type(T, S) =>
@@ -357,10 +356,10 @@ promote_rule(::Type{Bottom}, ::Type{Bottom}, slurp...) = Bottom # not strictly n
357356promote_rule (:: Type{Bottom} , :: Type{T} , slurp... ) where {T} = T
358357promote_rule (:: Type{T} , :: Type{Bottom} , slurp... ) where {T} = T
359358
360- promote_result (:: Type ,:: Type ,:: Type{T} ,:: Type{S} ,l:: Tuple{Vararg{Nothing}} ) where {T,S} = ( @inline ; _promote_type_binary (T,S,l) )
359+ promote_result (:: Type ,:: Type ,:: Type{T} ,:: Type{S} ,l:: Tuple{Vararg{Nothing}} ) where {T,S} = _promote_type_binary (T,S,l)
361360# If no promote_rule is defined, both directions give Bottom. In that
362361# case use typejoin on the original types instead.
363- promote_result (:: Type{T} ,:: Type{S} ,:: Type{Bottom} ,:: Type{Bottom} ,:: Tuple{Vararg{Nothing}} ) where {T,S} = ( @inline ; typejoin (T, S) )
362+ promote_result (:: Type{T} ,:: Type{S} ,:: Type{Bottom} ,:: Type{Bottom} ,:: Tuple{Vararg{Nothing}} ) where {T,S} = typejoin (T, S)
364363
365364"""
366365 promote(xs...)
0 commit comments