diff options
| author | gingerBill <bill@gingerbill.org> | 2025-01-31 09:30:15 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2025-01-31 09:30:15 +0000 |
| commit | 2af60b8767d8675fa4a09d24bf661c9ac29cdc47 (patch) | |
| tree | 8fb2c110b2f64509e5d3443b1cc4e7e444668898 | |
| parent | a94ffefba3fc48ea60a00b80364081e0f46223f2 (diff) | |
Fix #4763
| -rw-r--r-- | src/checker.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 0ac787e00..bfcabe4fa 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -6319,6 +6319,10 @@ gb_internal void check_deferred_procedures(Checker *c) { continue; } + if (dst_params == nullptr) { + error(src->token, "Deferred procedure must have parameters for %s", attribute); + continue; + } GB_ASSERT(dst_params->kind == Type_Tuple); Type *tsrc = alloc_type_tuple(); |