Fix regression for switching on a constant value (#35014)
We made a change in #32818 to restore compatibility with C# 7.x in rejecting certain switch statements even when we could prove completeness with the new switch analysis. It looks like that change just went a little too far, as we could do the analysis if the argument to the switch expression was a constant. This change removes the compat clause for switches with constant values Fixes #35011
加载中
想要评论请 注册 或 登录