فهرست منبع

Merge branch 'master' of https://github.com/odin-lang/Odin

gingerBill 5 سال پیش
والد
کامیت
c43b8ef387
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      src/check_type.cpp

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