From 6f1d15cda4871fd0dd409e99ac0a8e9e3ded47a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20N=C3=A4gele?= Date: Fri, 13 Oct 2023 01:20:44 +0200 Subject: [PATCH] Fix nasty error (args instead of function_body) --- src/ConstructResiduals.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ConstructResiduals.jl b/src/ConstructResiduals.jl index 1479bd0..53e7d46 100644 --- a/src/ConstructResiduals.jl +++ b/src/ConstructResiduals.jl @@ -11,6 +11,7 @@ function construct_residuals(name, function_body, args) end # add function body to function - f!.args[2].args[end] = Expr(:block, deepcopy(args)...) + f!.args[2].args[end] = Expr(:block, function_body...) + println(f!) return f! end \ No newline at end of file