Bug 7060 – parser bug "auto foo()in{}body{}"

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2011-12-03T06:14:00Z
Last change time
2011-12-03T10:04:26Z
Keywords
rejects-valid
Assigned to
nobody
Creator
timon.gehr

Comments

Comment #0 by timon.gehr — 2011-12-03T06:14:30Z
The parser does not recognize auto return declarations with contracts: auto foo()in{}body{} function declaration without return type. (Note that constructors are\ always named 'this') no identifier for declarator foo()
Comment #1 by k.hara.pg — 2011-12-03T10:04:26Z
I have already posted a pull request to allow it. But it is not yet merged. *** This issue has been marked as a duplicate of issue 4785 ***