[Issue 22019] New: `case 1,:` allowed by grammar but not DMD

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 12 12:45:30 UTC 2021


          Issue ID: 22019
           Summary: `case 1,:` allowed by grammar but not DMD
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: dlang-bugzilla at thecybershadow.net
          Reporter: dlang-bugzilla at thecybershadow.net

////// test.d //////
void main()
    final switch (1)
        case 1,:

Allowed in grammar (CaseStatement -> ArgumentList which may end with ,) but not
by DMD.


More information about the Digitalmars-d-bugs mailing list