diff options
| author | Joseph Battelle <bttelle@iom.io> | 2020-09-16 21:18:25 -0700 |
|---|---|---|
| committer | Joseph Battelle <bttelle@iom.io> | 2020-09-16 21:18:25 -0700 |
| commit | 7490ac2cfda3ef24195d98f47580f5d19df22ff2 (patch) | |
| tree | 07c42ea0cda1d453da9d03e3b68a090f1eb960ff /src/check_type.cpp | |
| parent | 10afc58d7d5e119f3b9332deb28bcd0d77caa089 (diff) | |
Fix issue #697
Add `is_type_typeid` check to `does_field_type_allow_using`
Diffstat (limited to 'src/check_type.cpp')
| -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 24434dba0..54cfce614 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; } |