[Issue 18951] package static method masked by public static method in class

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 8 11:48:05 UTC 2018


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

--- Comment #2 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/3c8788053d0fab4195ad442df184ddfc33065f1a
Fix Issue 18951.
When selecting the "most-visible" overload method to check access,
treat package methods as public if they're visible; otherwise, private.
This avoids package methods that are perfectly visible being passed over
in favor of public (numerically more visible) overloads appearing later
in the class.

https://github.com/dlang/dmd/commit/5f3b12bcda64046712d7fdb89772cbad63fdc79b
Merge pull request #8338 from FeepingCreature/fix/Issue_18951

Fix Issue 18951 - package static method masked by public static method in class
merged-on-behalf-of: Razvan Nitu <RazvanN7 at users.noreply.github.com>

--


More information about the Digitalmars-d-bugs mailing list