@@ -1016,7 +1016,7 @@ ExpressionValueType ExpressionTree::DeriveArithmeticOperationValueType(const Exp
10161016 return ExpressionValueType::Double;
10171017 case ExpressionValueType::String:
10181018 if (operationType == ExpressionOperatorType::Add)
1019- return ExpressionValueType::String;
1019+ return ExpressionValueType::String; // -V796
10201020 case ExpressionValueType::Guid:
10211021 case ExpressionValueType::DateTime:
10221022 throw ExpressionTreeException (" Cannot perform \" " + string (EnumName (operationType)) + " \" operation on \" Boolean\" and \" " + string (EnumName (rightValueType)) + " \" " );
@@ -1037,7 +1037,7 @@ ExpressionValueType ExpressionTree::DeriveArithmeticOperationValueType(const Exp
10371037 return ExpressionValueType::Double;
10381038 case ExpressionValueType::String:
10391039 if (operationType == ExpressionOperatorType::Add)
1040- return ExpressionValueType::String;
1040+ return ExpressionValueType::String; // -V796
10411041 case ExpressionValueType::Guid:
10421042 case ExpressionValueType::DateTime:
10431043 throw ExpressionTreeException (" Cannot perform \" " + string (EnumName (operationType)) + " \" operation on \" Int32\" and \" " + string (EnumName (rightValueType)) + " \" " );
@@ -1057,7 +1057,7 @@ ExpressionValueType ExpressionTree::DeriveArithmeticOperationValueType(const Exp
10571057 return ExpressionValueType::Double;
10581058 case ExpressionValueType::String:
10591059 if (operationType == ExpressionOperatorType::Add)
1060- return ExpressionValueType::String;
1060+ return ExpressionValueType::String; // -V796
10611061 case ExpressionValueType::Guid:
10621062 case ExpressionValueType::DateTime:
10631063 throw ExpressionTreeException (" Cannot perform \" " + string (EnumName (operationType)) + " \" operation on \" Int64\" and \" " + string (EnumName (rightValueType)) + " \" " );
@@ -1076,7 +1076,7 @@ ExpressionValueType ExpressionTree::DeriveArithmeticOperationValueType(const Exp
10761076 return ExpressionValueType::Double;
10771077 case ExpressionValueType::String:
10781078 if (operationType == ExpressionOperatorType::Add)
1079- return ExpressionValueType::String;
1079+ return ExpressionValueType::String; // -V796
10801080 case ExpressionValueType::Guid:
10811081 case ExpressionValueType::DateTime:
10821082 throw ExpressionTreeException (" Cannot perform \" " + string (EnumName (operationType)) + " \" operation on \" Decimal\" and \" " + string (EnumName (rightValueType)) + " \" " );
@@ -1094,7 +1094,7 @@ ExpressionValueType ExpressionTree::DeriveArithmeticOperationValueType(const Exp
10941094 return ExpressionValueType::Double;
10951095 case ExpressionValueType::String:
10961096 if (operationType == ExpressionOperatorType::Add)
1097- return ExpressionValueType::String;
1097+ return ExpressionValueType::String; // -V796
10981098 case ExpressionValueType::Guid:
10991099 case ExpressionValueType::DateTime:
11001100 throw ExpressionTreeException (" Cannot perform \" " + string (EnumName (operationType)) + " \" operation on \" Double\" and \" " + string (EnumName (rightValueType)) + " \" " );
@@ -1103,7 +1103,7 @@ ExpressionValueType ExpressionTree::DeriveArithmeticOperationValueType(const Exp
11031103 }
11041104 case ExpressionValueType::String:
11051105 if (operationType == ExpressionOperatorType::Add)
1106- return ExpressionValueType::String;
1106+ return ExpressionValueType::String; // -V796
11071107 case ExpressionValueType::Guid:
11081108 case ExpressionValueType::DateTime:
11091109 throw ExpressionTreeException (" Cannot perform \" " + string (EnumName (operationType)) + " \" operation on \" " + string (EnumName (leftValueType)) + " \" and \" " + string (EnumName (rightValueType)) + " \" " );
0 commit comments