Allow polymorphic checking with intrinsics.type_is_subtype_of(Derived_Type, Poly_Type)

This commit is contained in:
gingerBill
2024-02-08 13:41:02 +00:00
parent 42aca72d9f
commit 59933b244d
3 changed files with 30 additions and 5 deletions

View File

@@ -5686,7 +5686,7 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
return false;
}
operand->value = exact_value_bool(is_type_subtype_of(op_src.type, op_dst.type));
operand->value = exact_value_bool(is_type_subtype_of_and_allow_polymorphic(op_src.type, op_dst.type));
operand->mode = Addressing_Constant;
operand->type = t_untyped_bool;
} break;