@@ -331,7 +331,6 @@ const _promote_type_binary_recursion_depth_limit = let n = nothing # recursion
331
331
end
332
332
333
333
function promote_type (:: Type{T} , :: Type{S} ) where {T,S}
334
- @inline
335
334
# Try promote_rule in both orders. Typically only one is defined,
336
335
# and there is a fallback returning Bottom below, so the common case is
337
336
# promote_type(T, S) =>
@@ -357,10 +356,10 @@ promote_rule(::Type{Bottom}, ::Type{Bottom}, slurp...) = Bottom # not strictly n
357
356
promote_rule (:: Type{Bottom} , :: Type{T} , slurp... ) where {T} = T
358
357
promote_rule (:: Type{T} , :: Type{Bottom} , slurp... ) where {T} = T
359
358
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)
361
360
# If no promote_rule is defined, both directions give Bottom. In that
362
361
# 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)
364
363
365
364
"""
366
365
promote(xs...)
0 commit comments