I forgot `break`, but the compiler didn't raise an error:
```
void main()
{
int i;
switch (0) {
case 0, 1: i = 20;
default: assert(0);
}
}
```
Looks similar to issue 11653
Comment #1 by moonlightsentinel — 2022-04-09T19:25:29Z
Introduced by commit cac04a3dd38741205cac6b61400a7f91a8c8a36a
Comment #2 by moonlightsentinel — 2022-04-09T19:28:36Z
@dkorpel created dlang/dmd pull request #13972 "Fix issue 22999 - no switch fallthrough error with multi-valued case" fixing this issue:
- Fix issue 22999 - no switch fallthrough error with multi-valued case
https://github.com/dlang/dmd/pull/13972
Comment #4 by dlang-bot — 2022-04-13T10:12:36Z
dlang/dmd pull request #13972 "Fix issue 22999 - no switch fallthrough error with multi-valued case" was merged into master:
- dee13547063130da1a10fef0d66dd835af81d110 by Dennis Korpel:
Fix issue 22999 - no switch fallthrough error with multi-valued case
https://github.com/dlang/dmd/pull/13972
Comment #5 by dlang-bot — 2024-08-21T07:01:54Z
dlang/dmd pull request #16800 "Remove deprecation for bugzilla 22999" was merged into master:
- 59b4b32d56195137141a906e31d2badb34a0eb02 by Nicholas Wilson:
Remove deprecation for bugzilla 22999
https://github.com/dlang/dmd/pull/16800
Comment #6 by dkorpel — 2024-10-23T10:45:01Z
*** Issue 20216 has been marked as a duplicate of this issue. ***