June 14, 2023 [Issue 23992] New: [REG2.087.0] Private class overloads are callable if any overload is public | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23992 Issue ID: 23992 Summary: [REG2.087.0] Private class overloads are callable if any overload is public Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: accepts-invalid Severity: regression Priority: P3 Component: dmd Assignee: nobody@puremagic.com Reporter: dlang-bugzilla@thecybershadow.net /////////// 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 -- |
Copyright © 1999-2021 by the D Language Foundation