www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7060] New: parser bug "auto foo()in{}body{}"

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7060

           Summary: parser bug "auto foo()in{}body{}"
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: timon.gehr gmx.ch



The parser does not recognize auto return declarations with contracts:

auto foo()in{}body{}

function declaration without return type. (Note that constructors are\
 always named 'this')
no identifier for declarator foo()

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 03 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7060


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE



I have already posted a pull request to allow it.
But it is not yet merged.

*** This issue has been marked as a duplicate of issue 4785 ***

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