Skip to content

Commit

Permalink
Update macro_impl.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
MasonProtter authored Mar 4, 2024
1 parent fb9ebaa commit ba0eac6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/macro_impl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
Expand Down

0 comments on commit ba0eac6

Please sign in to comment.