JuliaVariables.jl
JuliaVariables.jl copied to clipboard
Fields of struct are treated as globals
Hi, thanks for a super useful package. Unfortunately, I think I find a bug
julia> solve(:(struct S
x
end))
:(struct @global S
#= REPL[11]:2 =#
@global x
end)
I suppose @global x is wrong?
Yes, I didn't treat struct yet. A bit curious, Is this necessary? I think the scope of struct is simple so we can treat them separately.
Yeah, I think I can skip fields while processing solved tree. But I thought it would be nice if I can just blindly look for ScopedVar.