[Issue 23947] If a class overloads a method mixing private and public and the last overload is public, the method is always public.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue May 30 16:05:40 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23947
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
@FeepingCreature updated dlang/dmd pull request #15282 "Fix issue 23974: Class
method private is ignored if there's a public overload after it" fixing this
issue:
- Fix issue 23947: If checking access after overload resolution, only check the
specific overload selected, not the most public overload of the set.
This is a deprecation because making it an error would force issue 21275 to
be an error as well.
https://github.com/dlang/dmd/pull/15282
--
More information about the Digitalmars-d-bugs
mailing list