D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3359 - Cannot parse pure/const/immutable functions with inferred return type
Summary: Cannot parse pure/const/immutable functions with inferred return type
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
 
Reported: 2009-10-02 00:07 UTC by Don
Modified: 2015-06-09 01:28 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Don 2009-10-02 00:07:23 UTC
This bug was originally reported as part of bug 3174.

int goo(int i) pure { return i; } // OK
auto foo(int i) pure { return i; } // Can't parse

class A {
    auto hoo(int i) pure  { return i; }  // can't parse
    const boo(int i) const { return i; }  // can't parse
    auto coo(int i) const { return i; }  // can't parse
    auto doo(int i) immutable { return i; }  // can't parse
}
Comment 2 yebblies 2012-02-11 21:01:06 UTC
*** Issue 4860 has been marked as a duplicate of this issue. ***