D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7060 - parser bug "auto foo()in{}body{}"
Summary: parser bug "auto foo()in{}body{}"
Status: RESOLVED DUPLICATE of issue 4785
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Linux
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2011-12-03 06:14 UTC by timon.gehr
Modified: 2011-12-03 10:04 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description timon.gehr 2011-12-03 06:14:30 UTC
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 Kenji Hara 2011-12-03 10:04:26 UTC
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 ***