mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-03 19:52:30 +00:00
Change precedence order for types e.g. ^T(x) == ^(T(x))
This commit is contained in:
@@ -365,7 +365,7 @@ void init_entity_foreign_library(Checker *c, Entity *e) {
|
||||
String name = ident->Ident.token.string;
|
||||
Entity *found = scope_lookup_entity(c->context.scope, name);
|
||||
if (found == nullptr) {
|
||||
if (name == "_") {
|
||||
if (is_blank_ident(name)) {
|
||||
error(ident, "`_` cannot be used as a value type");
|
||||
} else {
|
||||
error(ident, "Undeclared name: %.*s", LIT(name));
|
||||
|
||||
Reference in New Issue
Block a user