digitalmars.D.bugs - [Issue 15896] New: private ignored when import bindings are used
- via Digitalmars-d-bugs (23/23) Apr 08 2016 https://issues.dlang.org/show_bug.cgi?id=15896
https://issues.dlang.org/show_bug.cgi?id=15896 Issue ID: 15896 Summary: private ignored when import bindings are used Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: major Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: atila.neves gmail.com foo.d: import bar; int func() { thebar + 1; } bar.d: private int thebar = 4; Compilation fails as expected since `thebar` is private. But change the import in foo.d to: import bar: thebar; And suddenly thebar isn't so private anymore. --
Apr 08 2016