digitalmars.D.bugs - [Issue 16556] New: Named imports violate privacy
- via Digitalmars-d-bugs (22/22) Sep 27 2016 https://issues.dlang.org/show_bug.cgi?id=16556
https://issues.dlang.org/show_bug.cgi?id=16556 Issue ID: 16556 Summary: Named imports violate privacy Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: eyal weka.io Private qualifier is ignored on explicit imported names. module a; private int x; module b; import a : x; // If you remove ": x" suffix, it will not compile. void main() { x += 1; // <-- compiles } --
Sep 27 2016