Hello. Is this behavior normal, or it's a bug? And if it's normal why it's normal? I want to use function with `package` visibility in same package where it's defined, but I don't.

module package_visible;
package void foo() { }
void main() { foo(); }

% rdmd package_visible.d
package_visible.d(3): Error: function package_visible.foo is not accessible from module package_visible
Failed: ["dmd", "-v", "-o-", "package_visible.d", "-I."]

dmd version v2.073.1

Reply via email to