Bug 23992 – [REG2.087.0] Private class overloads are callable if any overload is public

Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2023-06-14T11:48:07Z
Last change time
2023-06-14T12:45:57Z
Keywords
accepts-invalid
Assigned to
No Owner
Creator
Vladimir Panteleev
See also
https://issues.dlang.org/show_bug.cgi?id=23991

Comments

Comment #0 by dlang-bugzilla — 2023-06-14T11:48:07Z
/////////// c.d /////////// class C { private void fun() {} public void fun(int) {} } ////////// test.d ///////// import c; void main() { auto c = new C; c.fun(); } /////////////////////////// Introduced in https://github.com/dlang/dmd/pull/9721
Comment #1 by dlang-bugzilla — 2023-06-14T12:45:57Z
*** This issue has been marked as a duplicate of issue 23947 ***