mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 22:58:46 +00:00
Fix edge case for procedures
This commit is contained in:
+6
-6
@@ -495,12 +495,12 @@ gb_internal Type *check_record_polymorphic_params(CheckerContext *ctx, Ast *poly
|
|||||||
type = t_invalid;
|
type = t_invalid;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (is_type_polymorphic_type) {
|
if (is_type_polymorphic_type && !is_type_proc(type)) {
|
||||||
// gbString str = type_to_string(type);
|
gbString str = type_to_string(type);
|
||||||
// error(params[i], "Parameter types cannot be polymorphic, got %s", str);
|
error(params[i], "Parameter types cannot be polymorphic, got %s", str);
|
||||||
// gb_string_free(str);
|
gb_string_free(str);
|
||||||
// type = t_invalid;
|
type = t_invalid;
|
||||||
// }
|
}
|
||||||
|
|
||||||
if (!is_type_param && check_constant_parameter_value(type, params[i])) {
|
if (!is_type_param && check_constant_parameter_value(type, params[i])) {
|
||||||
// failed
|
// failed
|
||||||
|
|||||||
Reference in New Issue
Block a user