From c62980eaeaf36a76c801a8f2745a29c953d6b88a Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 23 Mar 2021 22:33:32 +0000 Subject: Minor improvement to error message about assigning a type to a variable with no inference --- src/check_decl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/check_decl.cpp') diff --git a/src/check_decl.cpp b/src/check_decl.cpp index a08da3a2d..5e52597b9 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -53,7 +53,7 @@ Type *check_init_variable(CheckerContext *ctx, Entity *e, Operand *operand, Stri defer (gb_string_free(t)); error(operand->expr, "Cannot assign a type '%s' to variable '%.*s'", t, LIT(e->token.string)); if (e->type == nullptr) { - error_line("\tThe type of the variable '%.*s' cannot be inferred as a type does not have a type\n", LIT(e->token.string)); + error_line("\tThe type of the variable '%.*s' cannot be inferred as a type does not have a default type\n", LIT(e->token.string)); } e->type = operand->type; return nullptr; -- cgit v1.2.3