mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 07:08:48 +00:00
Merge pull request #5476 from jon-lipstate/card_hint
add did you mean for card/len
This commit is contained in:
@@ -2333,7 +2333,11 @@ gb_internal bool check_builtin_procedure(CheckerContext *c, Operand *operand, As
|
|||||||
|
|
||||||
if (mode == Addressing_Invalid) {
|
if (mode == Addressing_Invalid) {
|
||||||
gbString t = type_to_string(operand->type);
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user