[Issue 23991] New: [REG2.087.0] Private top-level overloads are callable if any overload is public

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 14 11:46:15 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=23991

          Issue ID: 23991
           Summary: [REG2.087.0] Private top-level 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

///////// p.d /////////
private void fun() {}
public void fun(int) {}
//////// test.d ///////
import p;

void main()
{
    fun();
}
///////////////////////

Introduced in https://github.com/dlang/dmd/pull/9636

--


More information about the Digitalmars-d-bugs mailing list