[Issue 3345] Static and nonstatic methods with the same name should be allowed
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 28 23:01:03 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=3345
Basile-z <b2.temp at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |b2.temp at gmx.com
--- Comment #8 from Basile-z <b2.temp at gmx.com> ---
considering that the `this` parameter is not part of the signature it's indeed
reasonable not to support static and nonstatic in the same set.
```
struct S
{
void v1(){}
static void v2(){}
alias Fun = void();
static assert(is(typeof(v1) == Fun));
static assert(is(typeof(v2) == Fun));
}
```
--
More information about the Digitalmars-d-bugs
mailing list