Bug 16556 – Named imports violate privacy

Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-09-27T21:01:00Z
Last change time
2016-09-27T21:12:09Z
Assigned to
nobody
Creator
eyal

Comments

Comment #0 by eyal — 2016-09-27T21:01:59Z
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 }
Comment #1 by ag0aep6g — 2016-09-27T21:12:09Z
*** This issue has been marked as a duplicate of issue 15896 ***