Fix default parameter assignment checking

This commit is contained in:
gingerBill
2018-12-28 11:20:31 +00:00
parent 7c982b6e10
commit 775f1e2c95
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -1327,7 +1327,7 @@ ParameterValue handle_parameter_value(CheckerContext *ctx, Type *in_type, Type *
}
if (in_type) {
check_is_assignable_to(ctx, &o, in_type);
check_assignment(ctx, &o, in_type, str_lit("parameter value"));
}
if (out_type_) *out_type_ = default_type(o.type);