diff options
| author | Jon Lipstate <jon@lipstate.com> | 2025-07-16 23:23:11 -0700 |
|---|---|---|
| committer | Jon Lipstate <jon@lipstate.com> | 2025-07-16 23:23:11 -0700 |
| commit | 3e5de5f705c91812f0cd49df813f75144be6598a (patch) | |
| tree | 9dd60adf4f89a5eb89cedef5d0d0f0f0aaf935b5 /src/check_builtin.cpp | |
| parent | e8b2f1eeaac191fa4edc8c06fa6a4f232666be65 (diff) | |
add did you mean for card/len
Diffstat (limited to 'src/check_builtin.cpp')
| -rw-r--r-- | src/check_builtin.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp index b833c7014..5baf67135 100644 --- a/src/check_builtin.cpp +++ b/src/check_builtin.cpp @@ -2333,7 +2333,11 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As if (mode == Addressing_Invalid) { gbString t = type_to_string(operand->type); - error(call, "'%.*s' is not supported for '%s'", LIT(builtin_name), t); + if (is_type_bit_set(op_type) && id == BuiltinProc_len) { + error(call, "'%.*s' is not supported for '%s', did you mean 'card'?", LIT(builtin_name), t); + } else { + error(call, "'%.*s' is not supported for '%s'", LIT(builtin_name), t); + } return false; } |