Equalities comparison in local scopes

Not sure the title captures it adequately, but something that came out of a recent Slack discussion:

a = "a"
@show a === "a" # true
for _ in 1:1
    @show a === "a" # false
    @show a .=== "a" # true
end

Is this intended behaviour? If so, what is the best way to make sense of it?

No, that seems like a bug. Would you mind filing an issue?

2 Likes

That’s now submitted here.

2 Likes