Discussion Thread: DIP 1043--Shortened Method Syntax--Community Review Round 1
Basile B.
b2.temp at gmx.com
Fri Feb 4 18:03:39 UTC 2022
On Friday, 4 February 2022 at 17:18:54 UTC, Tejas wrote:
> So maybe the fact that `this(string y) => this(0, y);` doesn't
> compile is a compiler bug? Constructors return `void` after
> all, no?
No, aggregate ctors are not `void` but the return is generated
[by the
compiler](https://github.com/dlang/dmd/blob/51882e40fd17ed4b57a8ce3a355ea76b55d777c9/src/dmd/semantic3.d#L771-L780).
More information about the Digitalmars-d
mailing list