[Issue 3359] New: Cannot parse pure/const/immutable functions with inferred return type
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 2 00:07:25 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3359
Summary: Cannot parse pure/const/immutable functions with
inferred return type
Product: D
Version: 2.031
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at yahoo.com.au> 2009-10-02 00:07:23 PDT ---
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
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list