mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-30 01:44:36 +00:00
Fix issue #697
Add `is_type_typeid` check to `does_field_type_allow_using`
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user