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 }
Comment #1 by bugzilla — 2011-06-23T12:06:42Z
Comment #2 by yebblies — 2012-02-11T21:01:06Z
*** Issue 4860 has been marked as a duplicate of this issue. ***