From b36e4d9b4e027821ae67c78bb3175a0de2c71bc9 Mon Sep 17 00:00:00 2001 From: Simon Byrne Date: Fri, 30 Dec 2016 15:04:20 +0000 Subject: [PATCH] Fix deprecation error for 2 arg airy cf #18050 --- base/deprecated.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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