From ba0eac62b169a7d44724c99fbe59b9d2cc19f713 Mon Sep 17 00:00:00 2001 From: Mason Protter Date: Mon, 4 Mar 2024 20:16:15 +0100 Subject: [PATCH] Update macro_impl.jl --- src/macro_impl.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/macro_impl.jl b/src/macro_impl.jl index 53acb722..0c4b7097 100644 --- a/src/macro_impl.jl +++ b/src/macro_impl.jl @@ -17,7 +17,7 @@ function tasks_macro(forex) settings = Settings() - locals_before, local_inner = _maybe_handle_atlocal_block!(forbody.args) + locals_before, locals_names = _maybe_handle_atlocal_block!(forbody.args) tls_names = isnothing(locals_before) ? [] : map(x -> x.args[1], locals_before) _maybe_handle_atset_block!(settings, forbody.args) @@ -31,7 +31,7 @@ function tasks_macro(forex) end) else - :(local mapping_function = WithTaskLocals(($(tls_names...),)) do ($(inits_names...),) + :(local mapping_function = WithTaskLocals(($(tls_names...),)) do ($(locals_names...),) function mapping_function_local($itvar,) $(forbody) end