mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-11 02:19:30 +00:00
Fix #6907
This commit is contained in:
@@ -6894,7 +6894,10 @@ gb_internal void check_deferred_procedures(Checker *c) {
|
||||
continue;
|
||||
}
|
||||
|
||||
GB_ASSERT(is_type_proc(src->type));
|
||||
if (!is_type_proc(src->type)) {
|
||||
error(src->token, "Invalid procedure type found during deferred procedure checking");
|
||||
continue;
|
||||
}
|
||||
GB_ASSERT(is_type_proc(dst->type));
|
||||
Type *src_params = base_type(src->type)->Proc.params;
|
||||
Type *src_results = base_type(src->type)->Proc.results;
|
||||
|
||||
Reference in New Issue
Block a user