提交 7d7427e0 编写于 作者: V vsadov

CR feedback on the fix for #5734

上级 5c602fc6
......@@ -444,20 +444,20 @@ private BoundExpression VisitBinaryOperator(BinaryOperatorKind opKind, MethodSym
}
}
private static BoundExpression DemoteEnumOperand(BoundExpression left)
private static BoundExpression DemoteEnumOperand(BoundExpression operand)
{
if (left.Kind == BoundKind.Conversion)
if (operand.Kind == BoundKind.Conversion)
{
var conversion = (BoundConversion)left;
var conversion = (BoundConversion)operand;
if (!conversion.ConversionKind.IsUserDefinedConversion() &&
conversion.ConversionKind.IsImplicitConversion() &&
conversion.Type.StrippedType().IsEnumType())
{
left = conversion.Operand;
operand = conversion.Operand;
}
}
return left;
return operand;
}
private BoundExpression VisitAndPromoteEnumOperand(BoundExpression operand, TypeSymbol promotedType, bool isChecked)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册