diff options
| author | Platin21 <armin.hamar@icloud.com> | 2020-09-27 22:13:12 +0300 |
|---|---|---|
| committer | Platin21 <armin.hamar@icloud.com> | 2020-09-27 22:13:12 +0300 |
| commit | d72a01a714dc150b6c58ecf7f4c066bce2a2a5d1 (patch) | |
| tree | 835beb15048f2d0ab7f930630636763f81609666 /src | |
| parent | 2ed6785b4af6bfef40c4c1b34167507195619f32 (diff) | |
| parent | 2ebb94fa729e50867ca882fd08acc64bab902ca3 (diff) | |
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src')
| -rw-r--r-- | src/check_type.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index b6dfafcdc..d305d6859 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -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; } |