mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-18 17:08:21 +00:00
Fix #3249
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user