[Issue 14237] Compiler should reject attempts to (re)define .init

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Mar 2 09:55:08 PST 2015


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

hsteoh at quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
                 CC|                            |hsteoh at quickfur.ath.cx
            Summary|Poor diagnostic when        |Compiler should reject
                   |declaring a init() class    |attempts to (re)define
                   |member function.            |.init
           Severity|enhancement                 |normal

--- Comment #1 from hsteoh at quickfur.ath.cx ---
The compiler should reject attempts to define a member named 'init', because it
conflicts with the special meaning of .init in the language.

--


More information about the Digitalmars-d-bugs mailing list