Lets parse next D code:
> switch(n) {
> case 1:
> case 2:
> return true;
> }
This is a valid D language construction. But documentation says that statement "case 1:" must be followed by any statement except other "case" or "default".
As documentation says (http://dlang.org/statement#CaseStatement)
"case ArgumentList :" is followed by "ScopeStatementList" (http://dlang.org/statement#ScopeStatementList) which is a list of any statements except CaseStatement or CaseRangeStatement or DefaultStatement. This rule conflicts with actual D language compiler.
Comment #1 by bugzilla — 2019-12-21T13:20:30Z
*** This issue has been marked as a duplicate of issue 9529 ***