Bug 10205 – 'deprecated' '(' assignExpression ')' grammar is not documented

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-05-29T11:01:00Z
Last change time
2015-06-09T05:12:00Z
Keywords
spec
Assigned to
nobody
Creator
briancschott
Blocks
10233

Comments

Comment #0 by briancschott — 2013-05-29T11:01:12Z
The syntax for providing a message with the deprecated attribute is not documented on dlang.org. It is also not specified if this is valid when deprecated is used as a storage class. http://dlang.org/attribute.html#deprecated The correct syntax seems to be (in ANTLR grammar form): deprecated: 'deprecated' ('(' assignExpression ')')? ;
Comment #1 by k.hara.pg — 2013-12-27T20:22:07Z
Grammar is currently defined as follows. DeprecatedAttribute: deprecated deprecated ( StringLiteral )