www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3359] New: Cannot parse pure/const/immutable functions with inferred return type

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 puremagic.com
        ReportedBy: clugdbug yahoo.com.au


--- Comment #0 from Don <clugdbug 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: -------
Oct 02 2009