[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 Jun 13 07:20:16 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23947
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #15282 "Fix issue 23947: Class method private is ignored
if there's a public overload after it" was merged into master:
- 8feaf5262cf35aa48b26b5177c9c1db2790f341c by Mathis Beer:
Fix issue 23947: If checking access after overload resolution, only check the
specific overload selected, not the most public overload of the set.
This deprecation also covers the deprecation for issue 21275.
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