diff --git a/base/deprecated.jl b/base/deprecated.jl index 661c16353b0dc4..69e75f5db0952a 100644 --- a/base/deprecated.jl +++ b/base/deprecated.jl @@ -1303,11 +1303,13 @@ function _airyx(k::Integer, z::Complex128) end end -for afn in (:airy,:airyx) +for + in (:airy,:airyx) _afn = Symbol("_"*string(afn)) suf = string(afn)[5:end] @eval begin function $afn(k::Integer, z::Complex128) + afn = $(QuoteNode(afn)) depwarn("`$afn(k,x)` is deprecated, use `airyai$suf(x)`, `airyaiprime$suf(x)`, `airybi$suf(x)` or `airybiprime$suf(x)` instead.",$(QuoteNode(afn))) $_afn(k,z) end