[Issue 3858] mixin attribute is ignored

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 25 14:48:36 UTC 2019


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

Basile-z <b2.temp at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|rejects-valid               |accepts-invalid
                 CC|                            |b2.temp at gmx.com

--- Comment #2 from Basile-z <b2.temp at gmx.com> ---
This is complicated to fix properly. During CompileDeclaration semantic, DMD
parses a token (so the protection let's say), the colon and then a block that's
empty (since it's already there). 

A kind of flag must be put to detect this particular case and then after the
CompileDeclaration semantic, if the flag is set, all the following declarations
must be pulled in the new attribute.

The most simple at first glance would be to disallow MixinDeclaration to finish
with an AttributeSpecifier (the form that uses a colon)

--


More information about the Digitalmars-d-bugs mailing list