[Issue 3345] Static and nonstatic methods with the same name should be allowed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 4 06:18:41 UTC 2021


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

--- Comment #23 from Max Samukha <maxsamukha at gmail.com> ---
(In reply to Walter Bright from comment #17)
> > But having different error messages depending on the order of declarations is definitely wrong.
> 
> Probably, but it's a minor issue, as both messages are correct.

If there is a matching static overload, "need 'this'" without "matches both" is
misleading. I've filed https://issues.dlang.org/show_bug.cgi?id=22157 for that.

--


More information about the Digitalmars-d-bugs mailing list