[Issue 13184] better error messages for incorrect constructors

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 18 12:42:17 UTC 2018


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
It seems that __gshared is ignored when applied to a constructor, which seems
to be in trend with how D usually treats identifiers which are used where they
not supposed to. The same happens with extern(C) :

struct S
{
    extern (C) void foo() {}
}

This code will compiler even though it doesn't make any sense to mark a struct
function as extern(C).

I would say we should close this as wontfix.

--


More information about the Digitalmars-d-bugs mailing list