diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-07-13 16:20:07 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-07-13 16:20:07 +0100 |
| commit | b8697fb4ed34d0da0fa0888b57e6edcc37a0ce81 (patch) | |
| tree | fe3dd4008b6878b1b0b5015131e9a35129845123 /src/check_decl.cpp | |
| parent | 03570275c1cfd14014d81bcdf085c320c1902c40 (diff) | |
Change precedence order for types e.g. ^T(x) == ^(T(x))
Diffstat (limited to 'src/check_decl.cpp')
| -rw-r--r-- | src/check_decl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp index 52f785ef6..96827590d 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -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)); |