mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Correct does_field_type_allow_using
This commit is contained in:
@@ -89,12 +89,8 @@ bool does_field_type_allow_using(Type *t) {
|
|||||||
t = base_type(t);
|
t = base_type(t);
|
||||||
if (is_type_struct(t)) {
|
if (is_type_struct(t)) {
|
||||||
return true;
|
return true;
|
||||||
} else if (is_type_raw_union(t)) {
|
|
||||||
return true;
|
|
||||||
} else if (is_type_array(t)) {
|
} else if (is_type_array(t)) {
|
||||||
return t->Array.count <= 4;
|
return t->Array.count <= 4;
|
||||||
} else if (is_type_typeid(t)) {
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user