Skip to content

Commit

Permalink
Constify deprecated bindings
Browse files Browse the repository at this point in the history
hopefully fixes auto_unbox: unable to determine argument type
ref #13107 (comment)

(cherry picked from commit 3e3f353)
ref #13180
  • Loading branch information
tkelman committed Sep 17, 2015
1 parent abba461 commit 2b69ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ deprecate(m::Module, s::Symbol) = ccall(:jl_deprecate_binding, Void, (Any, Any),
macro deprecate_binding(old, new)
Expr(:toplevel,
Expr(:export, esc(old)),
Expr(:(=), esc(old), esc(new)),
Expr(:const, Expr(:(=), esc(old), esc(new))),
Expr(:call, :deprecate, Expr(:quote, old)))
end

Expand Down

0 comments on commit 2b69ef6

Please sign in to comment.