[Issue 18228] this(this a){} doesn't generate postblit ctor; this(this){} does

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 12 02:46:03 UTC 2018


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

ag0aep6g at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
                 CC|                            |ag0aep6g at gmail.com
           Hardware|x86                         |All
                 OS|Mac OS X                    |All

--- Comment #1 from ag0aep6g at gmail.com ---
`this(this a){}` is not a postblit function. DMD apparently interprets it as a
constructor, same as `this(typeof(this) a) {}`. I don't think that's correct,
though. It should be rejected as invalid code. Tagging accordingly.

--


More information about the Digitalmars-d-bugs mailing list