From 7a0b38d7019070ca0738ee9fd28f7410ca1e5306 Mon Sep 17 00:00:00 2001 From: Fredrik Ekre Date: Fri, 23 Feb 2018 22:13:38 +0100 Subject: [PATCH] fix deprecated_binding (#26170) --- base/deprecated.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/deprecated.jl b/base/deprecated.jl index 5502b32cdab04..cb15982c4f595 100644 --- a/base/deprecated.jl +++ b/base/deprecated.jl @@ -122,8 +122,8 @@ end deprecate(m::Module, s::Symbol, flag=1) = ccall(:jl_deprecate_binding, Cvoid, (Any, Any, Cint), m, s, flag) -macro deprecate_binding(old, new, export_old=true, dep_message=nothing, constant=true) - dep_message == nothing && (dep_message = ", use $new instead.") +macro deprecate_binding(old, new, export_old=true, dep_message=:nothing, constant=true) + dep_message === :nothing && (dep_message = ", use $new instead.") return Expr(:toplevel, export_old ? Expr(:export, esc(old)) : nothing, Expr(:const, Expr(:(=), esc(Symbol(string("_dep_message_",old))), esc(dep_message))),