Add `is_type_typeid` check to `does_field_type_allow_using`
This commit is contained in:
Joseph Battelle
2020-09-16 21:18:25 -07:00
parent 10afc58d7d
commit 7490ac2cfd

View File

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