You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A module's private name is accepted after using, and the backends disagree #781
using brings a module's private names into scope as far as the checker is concerned. The walker then cannot find the name, and BEAM finds it.
module Config do
private do
let secret = 5
end
end
using Config
main do
IO.printLine(secret)
end
kex -C: No errors found.
kex -R: runtime error: undefined variable: secret
kex (BEAM): prints 5
Config.secret is rejected, as expected. Expected the bare name after using to be rejected the same way, with KEXET-0149 (secret` is private to `Config).
Seen on kex 0.4.0-rc.4 built from main at 371bbdf. Found while writing explanations for oops.kex.run.
Activity