提交 8fa47a3b 编写于 作者: V vsadov

CR feedback.

No need to use Visit to create a constant expression.
上级 75befe7d
......@@ -408,7 +408,7 @@ private BoundExpression PromoteEnumOperand(BoundExpression operand, BoundExpress
if (literal != null)
{
// for compat reasons enum literals are directly promoted into underlying values
return Visit(literal.Update(literal.ConstantValue, promotedType));
return Constant(literal.Update(literal.ConstantValue, promotedType));
}
else
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册