mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix #987
This commit is contained in:
+1
-1
@@ -1132,7 +1132,7 @@ Entity *check_ident(CheckerContext *c, Operand *o, Ast *n, Type *named_type, Typ
|
|||||||
Entity *e = scope_lookup(c->scope, name);
|
Entity *e = scope_lookup(c->scope, name);
|
||||||
if (e == nullptr) {
|
if (e == nullptr) {
|
||||||
if (is_blank_ident(name)) {
|
if (is_blank_ident(name)) {
|
||||||
error(n, "'_' cannot be used as a value type");
|
error(n, "'_' cannot be used as a value");
|
||||||
} else {
|
} else {
|
||||||
error(n, "Undeclared name: %.*s", LIT(name));
|
error(n, "Undeclared name: %.*s", LIT(name));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user