basic-types/bug652380.vala \
basic-types/bug655908.vala \
basic-types/bug659975.vala \
+ basic-types/bug678791.vala \
basic-types/bug686336.vala \
namespaces.vala \
methods/lambda.vala \
right.target_type.value_owned = false;
if (left.value_type.nullable != right.value_type.nullable) {
- // if only one operand is nullable, make sure the other operand is promoted to nullable as well
- if (!left.value_type.nullable) {
- left.target_type.nullable = true;
- } else if (!right.value_type.nullable) {
- right.target_type.nullable = true;
- }
+ // if only one operand is nullable, make sure the other
+ // operand is promoted to nullable as well,
+ // reassign both, as get_arithmetic_result_type doesn't
+ // take nullability into account
+ left.target_type.nullable = true;
+ right.target_type.nullable = true;
}
value_type = context.analyzer.bool_type;