August 12, 2019
https://issues.dlang.org/show_bug.cgi?id=1399

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |INVALID

--- Comment #7 from RazvanN <razvan.nitu1305@gmail.com> ---
This the correct behavior. The compiler identifies the end of a case statement if it has encountered another case/default statement or the ending `}` of the switch statement. Once a version identifier or even a static if is encountered, the parser sees it as part of the case statement that it is analyzing at that time.

A workaround would be to add the version block in the default statement and lose the `case 2` statement.

Closing as invalid.

--