Bug 10300 – remove limitation: user defined attributes cannot appear as postfixes
Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-08T08:56:00Z
Last change time
2013-12-03T22:56:37Z
Assigned to
nobody
Creator
destructionator
Comments
Comment #0 by destructionator — 2013-06-08T08:56:06Z
given:
enum Test;
void foo() @Test {}
$ dmd test11
test11.d(2): Error: user defined attributes cannot appear as postfixes
test11.d(2): Error: semicolon expected following function declaration
test11.d(2): Error: unrecognized declaration
Why is that limitation there? I propose we remove it so make UDAs the same as the other function decorations which can go both before and after a function.
Comment #1 by k.hara.pg — 2013-12-03T22:56:37Z
*** This issue has been marked as a duplicate of issue 11678 ***