Thread overview
[Issue 3359] New: Cannot parse pure/const/immutable functions with inferred return type
Oct 02, 2009
Don
Jun 23, 2011
Walter Bright
Feb 12, 2012
yebblies
October 02, 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@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: -------
June 23, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3359


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2011-06-23 12:06:42 PDT ---
https://github.com/D-Programming-Language/dmd/commit/6a15077f8189e1ef203565edaebc766446aa105b

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 12, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=3359


yebblies <yebblies@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@klickverbot.at


--- Comment #2 from yebblies <yebblies@gmail.com> 2012-02-12 16:01:06 EST ---
*** Issue 4860 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------