Browse Source

Correct `does_field_type_allow_using`

gingerBill 4 years ago
parent
commit
d6125f05d4
1 changed files with 0 additions and 4 deletions
  1. 0 4
      src/check_type.cpp

+ 0 - 4
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;
 }