Skip to content
代码片段 群组 项目
未验证 提交 7d7474c8 编辑于 作者: Andy Gocke's avatar Andy Gocke 提交者: GitHub
浏览文件

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
上级 76e45c9f
无相关合并请求
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册