Skip to content

Commit d6125f0

Browse files
committed
Correct does_field_type_allow_using
1 parent ad22eda commit d6125f0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/check_type.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,8 @@ bool does_field_type_allow_using(Type *t) {
8989
t = base_type(t);
9090
if (is_type_struct(t)) {
9191
return true;
92-
} else if (is_type_raw_union(t)) {
93-
return true;
9492
} else if (is_type_array(t)) {
9593
return t->Array.count <= 4;
96-
} else if (is_type_typeid(t)) {
97-
return true;
9894
}
9995
return false;
10096
}

0 commit comments

Comments
 (0)