aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-06-29 12:35:15 +0100
committergingerBill <bill@gingerbill.org>2021-06-29 12:35:15 +0100
commitd6125f05d46c9de897b8ba2c4075714cef04e4f4 (patch)
tree3241b6f1c3dede65c193c95b7718867d6f9200fe /src/check_type.cpp
parentad22eda87c8c519ca2d9809533e63a3d7b34b71c (diff)
Correct `does_field_type_allow_using`dev-2021-07
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index b23ba937c..47726a15b 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -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;
}