mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Fix #4763
This commit is contained in:
@@ -6319,6 +6319,10 @@ gb_internal void check_deferred_procedures(Checker *c) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (dst_params == nullptr) {
|
||||||
|
error(src->token, "Deferred procedure must have parameters for %s", attribute);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
GB_ASSERT(dst_params->kind == Type_Tuple);
|
GB_ASSERT(dst_params->kind == Type_Tuple);
|
||||||
|
|
||||||
Type *tsrc = alloc_type_tuple();
|
Type *tsrc = alloc_type_tuple();
|
||||||
|
|||||||
Reference in New Issue
Block a user