Correct does_field_type_allow_using

This commit is contained in:
gingerBill
2021-06-29 12:35:15 +01:00
parent ad22eda87c
commit d6125f05d4

View File

@@ -89,12 +89,8 @@ bool does_field_type_allow_using(Type *t) {
t = base_type(t);
if (is_type_struct(t)) {
return true;
} else if (is_type_raw_union(t)) {
return true;
} else if (is_type_array(t)) {
return t->Array.count <= 4;
} else if (is_type_typeid(t)) {
return true;
}
return false;
}