mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Fix #3249
This commit is contained in:
+4
-1
@@ -5465,7 +5465,10 @@ gb_internal void check_procedure_later_from_entity(Checker *c, Entity *e, char c
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Type *type = base_type(e->type);
|
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) {
|
if (is_type_polymorphic(type) && !type->Proc.is_poly_specialized) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user