[Issue 23991] [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 12:07:07 UTC 2023


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

FeepingCreature <default_357-line at yahoo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |default_357-line at yahoo.de

--- Comment #1 from FeepingCreature <default_357-line at yahoo.de> ---
Not a dupe, but see also https://issues.dlang.org/show_bug.cgi?id=23947

I believe this whole class of issues arises from the use of
`mostVisibleOverload` in `checkAccess`: if only one of a set of overloads is
public, it considers all of them public. It's supposed to re-check permissions
once it has selected an overload, but it often does not do so.

--


More information about the Digitalmars-d-bugs mailing list