From 8fff59c665ec55e53d20afe4f3c3628aff07bf38 Mon Sep 17 00:00:00 2001 From: pulsipher Date: Fri, 27 Oct 2023 22:34:07 -0400 Subject: [PATCH] fix macro bug --- src/macros.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/macros.jl b/src/macros.jl index 836b8a4..0dfcfc1 100644 --- a/src/macros.jl +++ b/src/macros.jl @@ -163,7 +163,8 @@ macro disjunction(args...) # initial processing of positional arguments length(pos_args) >= 2 || _error("Not enough arguments, please see docs for accepted `@disjunction` syntax..") - esc_model = esc(popfirst!(pos_args)) + model = popfirst!(pos_args) + esc_model = esc(model) y = first(pos_args) extra = pos_args[2:end] if isexpr(args[1], :block)