Ensure checking for proc property equality before checking param assignability

This commit is contained in:
Harold Brenes
2026-03-23 21:15:12 -04:00
parent 147542b5cc
commit 4f6caf19f0
2 changed files with 9 additions and 6 deletions

View File

@@ -929,7 +929,7 @@ gb_internal i64 check_distance_between_types(CheckerContext *c, Operand *operand
return 4;
}
if (is_type_proc(src) && check_proc_params_assignable(c, dst, src)) {
if (is_type_proc(src) && are_proc_properties_identical(dst,src) && check_proc_params_assignable(c, dst, src)) {
return 4;
}
}