mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-04 20:17:48 +00:00
Improve errors about conversions of constant integers
This commit is contained in:
@@ -578,7 +578,7 @@ gb_internal void check_const_decl(CheckerContext *ctx, Entity *e, Ast *type_expr
|
||||
if (operand.mode == Addressing_Invalid ||
|
||||
base_type(operand.type) == t_invalid) {
|
||||
gbString str = expr_to_string(init);
|
||||
error(e->token, "Invalid declaration type '%s'", str);
|
||||
error(init, "Invalid declaration value '%s'", str);
|
||||
gb_string_free(str);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user