gingerBill 1 سال پیش
والد
کامیت
223a336eb4
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      src/checker.cpp

+ 4 - 1
src/checker.cpp

@@ -5465,7 +5465,10 @@ gb_internal void check_procedure_later_from_entity(Checker *c, Entity *e, char c
 		return;
 	}
 	Type *type = base_type(e->type);
-	GB_ASSERT(type->kind == Type_Proc);
+	if (type == t_invalid) {
+		return;
+	}
+	GB_ASSERT_MSG(type->kind == Type_Proc, "%s", type_to_string(e->type));
 
 	if (is_type_polymorphic(type) && !type->Proc.is_poly_specialized) {
 		return;