Add intrinsics.type_merge

This commit is contained in:
gingerBill
2023-05-19 11:18:20 +01:00
parent 76a1851cb8
commit 2631e07bea
5 changed files with 82 additions and 1 deletions

View File

@@ -1067,7 +1067,7 @@ gb_internal void check_assignment(CheckerContext *c, Operand *operand, Type *typ
if (check_is_assignable_to(c, operand, type)) {
if (operand->mode == Addressing_Type && is_type_typeid(type)) {
add_type_info_type(c, operand->type);
add_type_info_type(c, operand->type);
add_type_and_value(c, operand->expr, Addressing_Value, type, exact_value_typeid(operand->type));
}
} else {