On Fri, 15 Aug 2014 19:46:07 +0000
Sergey Kozyr via Digitalmars-d <[email protected]> wrote:

> Let's open doc http://dlang.org/statement#CaseStatement
and we'll find some more bugs there:

  CaseStatement:
    case ArgumentList : ScopeStatementList

  ArgumentList:
    AssignExpression
    AssignExpression ,
    AssignExpression , ArgumentList

  AssignExpression:
    ConditionalExpression
    ConditionalExpression = AssignExpression
    ConditionalExpression += AssignExpression
    ...

and so on.

so we can see that things like 'case n+=5:' should be allowed, while
they are not.

Attachment: signature.asc
Description: PGP signature

Reply via email to