Add a code quality test for switching on a tuple literal
The test exposed some parsing precedence issues for the switch expression which are fixed here. The => following the when clause was being consumed as part of the when expression (as a lambda). Changed the precedence of the when expression to a coalescing expression to forbid a lambda there.
Showing
想要评论请 注册 或 登录