[Issue 10285] New: Enum grammar documentation is incorrect

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 6 14:28:07 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10285

           Summary: Enum grammar documentation is incorrect
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: websites
        AssignedTo: nobody at puremagic.com
        ReportedBy: brian-schott at cox.net


--- Comment #0 from brian-schott at cox.net 2013-06-06 14:28:06 PDT ---
The documentation for EnumMember states that it can consist of "type '='
assignExpression", but comments in the the compiler source code indicate that
this should actually be "type Identifer '=' assignExpression".

Another issue is that the grammar does not disallow the "type Identifier '='
assignExpression" syntax if the enum has a name or base type specified, but
DMD's parser does.

-- 
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