Bug 3359 – Cannot parse pure/const/immutable functions with inferred return type
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2009-10-02T00:07:00Z
Last change time
2015-06-09T01:28:08Z
Keywords
rejects-valid
Assigned to
nobody
Creator
clugdbug
Comments
Comment #0 by clugdbug — 2009-10-02T00:07:23Z
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
}