Bug 5960 – Return type inferrence with suffixed function attributes should be allowed
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-05-08T13:18:00Z
Last change time
2011-05-08T13:29:49Z
Keywords
rejects-valid
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0 by k.hara.pg — 2011-05-08T13:18:01Z
Following code compilation fails:
----
struct S
{
auto f1(){} // OK
auto f2()nothrow{} // NG
auto f3()pure{} // NG
auto f4()@property{} // NG
auto f5()const{} // NG
auto f6()immutable{} // NG
auto f7()shared{} // NG
}
----
Comment #1 by kennytm — 2011-05-08T13:29:49Z
*** This issue has been marked as a duplicate of issue 4040 ***