Skip to content

Commit 278965f

Browse files
committed
Make deprecated promote_eltype_op type stable
1 parent 69c1c8f commit 278965f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/deprecated.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ function frexp{T<:AbstractFloat}(A::Array{T})
14971497
end
14981498

14991499
# Calling promote_op is likely a bad idea, so deprecate its convenience wrapper promote_eltype_op
1500-
@deprecate promote_eltype_op(op, As...) promote_op(op, map(eltype, As)...)
1500+
@deprecate promote_eltype_op(op, As...) promote_op(op, Base.eltypes(As...).parameters...)
15011501

15021502
function unsafe_wrap(::Type{String}, p::Union{Ptr{UInt8},Ptr{Int8}}, len::Integer, own::Bool=false)
15031503
Base.depwarn("unsafe_wrap(String, ...) is deprecated; use `unsafe_string` instead.", :unsafe_wrap)

0 commit comments

Comments
 (0)