"Symbols with private visibility can only be accessed from within the same module."
This is how module based languages work, a bit more useful then to the scope approach IMO. An easy mistake to make.
https://dlang.org/spec/attribute.html#visibility_attributes