JuliaStaging / JuliaStaging/JuliaVariables.jl
Incorrect handling of `setindex!` expressions
Open
- Dominant language
- Julia
- Stars
- 28
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
`x` should be global in both of these:
```julia
julia> solve_from_local(:(x[] = 1))
:($(Expr(:scoped, (bounds = Var[@local x], freevars = Var[], bound_inits = Symbol[]), :((@local x)[] = 1))))
julia> solve_from_local(:(setindex!(x, 1)))
:($(Expr(:scoped, (bounds = Var[], freevars = Var[], bound_inits = Symbol[]), :((@global setindex!)(@global x, 1)))))
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.