mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-18 20:02:22 -07:00
Fix default parameter assignment checking
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user