[Issue 22565] Attributes not accepted for empty declaration

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 7 10:56:03 UTC 2021


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

Stanislav Blinov <stanislav.blinov at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |stanislav.blinov at gmail.com
         Resolution|INVALID                     |---

--- Comment #2 from Stanislav Blinov <stanislav.blinov at gmail.com> ---
(In reply to RazvanN from comment #1)

> There is no such thing as an EmptyDeclaration in D. 

Spec says there is:

https://dlang.org/spec/grammar.html
https://dlang.org/spec/grammar.html#EmptyDeclaration

DeclDef -> AttributeSpecifier -> Attribute DeclarationBlock -> AtAttribute
DeclDef -> AtAttribute EmptyDeclaration

--


More information about the Digitalmars-d-bugs mailing list