[Issue 13495] DMD fails to call struct constructor with default args when default constructor is @disabled
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 5 12:56:44 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=13495
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |razvan.nitu1305 at gmail.com
Resolution|--- |FIXED
--- Comment #2 from RazvanN <razvan.nitu1305 at gmail.com> ---
The code in the OP now issues a deprecation : Deprecation: constructor
`test.S.this` all parameters have default arguments, but structs cannot have
default constructors. PR : https://github.com/dlang/dmd/pull/5331
Default construction is disabled, so this case is no longer actual. Closing as
fixed.
--
More information about the Digitalmars-d-bugs
mailing list