[Issue 8228] Mixin template can't add constructor to class

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Aug 27 15:43:49 PDT 2016


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

--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
Indeed this is not technically a bug at all, for example:

http://dlang.org/spec/template-mixin.html#mixin_scope

*However*, we could make it a compiler error to define constructors in mixin
templates as they can't really be used in any way.

--


More information about the Digitalmars-d-bugs mailing list