From a5e6248f025fab8aaa6b17c2c26d5bd45bad466d Mon Sep 17 00:00:00 2001 From: Simon Etter Date: Sun, 4 Feb 2024 09:45:46 +0800 Subject: [PATCH] fix(kwdef): Copy over Base.isexpr --- src/kwdef.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kwdef.jl b/src/kwdef.jl index a13d7db..b8d8d48 100644 --- a/src/kwdef.jl +++ b/src/kwdef.jl @@ -1,4 +1,4 @@ -using Base: isexpr +isexpr(@nospecialize(ex), head::Symbol) = isa(ex, Expr) && ex.head === head macro kwdef(expr) expr = macroexpand(__module__, expr) # to expand @static