[Issue 13184] better error messages for incorrect constructors
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Apr 18 13:12:29 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=13184
Mike Franklin <slavo5150 at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |slavo5150 at yahoo.com
--- Comment #2 from Mike Franklin <slavo5150 at yahoo.com> ---
(In reply to RazvanN from comment #1)
> 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) :
Yes, that does seem to be the trend, and I don't like it. `static` methods at
the module level is another; the `static` is pointless, but the compiler
doesn't seem to mind.
I would prefer that, if a token is meaningless, the compiler emit an error.
--
More information about the Digitalmars-d-bugs
mailing list