mirror of
https://github.com/odin-lang/Odin.git
synced 2026-05-26 05:38:14 +00:00
Merge branch 'master' of https://github.com/gingerBill/Odin
This commit is contained in:
@@ -345,6 +345,17 @@ void check_assignment(Checker *c, Operand *operand, Type *type, String context_n
|
||||
if (operand->mode == Addressing_Invalid) {
|
||||
return;
|
||||
}
|
||||
#if 0
|
||||
if (operand->mode == Addressing_Type) {
|
||||
Type *t = base_type(type);
|
||||
if (t->kind == Type_Pointer &&
|
||||
t->Pointer.elem == t_type_info) {
|
||||
add_type_info_type(c, type);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (is_type_untyped(operand->type)) {
|
||||
Type *target_type = type;
|
||||
if (type == NULL || is_type_any(type)) {
|
||||
|
||||
Reference in New Issue
Block a user