diff options
| author | gingerBill <bill@gingerbill.org> | 2024-03-24 13:45:10 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-03-24 13:45:10 +0000 |
| commit | 223a336eb496954665aa150e94c80ffd3b4acdae (patch) | |
| tree | 1d8aab3903c51aea3dc4ef3331662d8567f4d493 /src | |
| parent | 1ea12295165091e893bff34da73edfa916a00e7d (diff) | |
Fix #3249
Diffstat (limited to 'src')
| -rw-r--r-- | src/checker.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 0599cec25..c6f44fcd8 100644 --- a/src/checker.cpp +++ b/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; |