[Issue 23992] New: [REG2.087.0] Private class overloads are callable if any overload is public
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jun 14 11:48:07 UTC 2023
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 at puremagic.com
Reporter: dlang-bugzilla at 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
--
More information about the Digitalmars-d-bugs
mailing list