Merge branch 'master' into base-work

This commit is contained in:
gingerBill
2024-01-28 23:50:31 +00:00
+5 -1
View File
@@ -2988,7 +2988,11 @@ gb_internal bool check_is_castable_to(CheckerContext *c, Operand *operand, Type
} }
// proc <-> proc // proc <-> proc
if (is_type_proc(src) && is_type_proc(dst)) { if (is_type_proc(src) && is_type_proc(dst)) {
if (is_type_polymorphic(src) || is_type_polymorphic(dst)) { if (is_type_polymorphic(dst)) {
if (is_type_polymorphic(src) &&
operand->mode == Addressing_Variable) {
return true;
}
return false; return false;
} }
return true; return true;