浏览代码

Correct `does_field_type_allow_using`

gingerBill 4 年之前
父节点
当前提交
d6125f05d4
共有 1 个文件被更改,包括 0 次插入4 次删除
  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;
 }