diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-09-24 23:48:03 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-09-24 23:48:03 +0100 |
| commit | 349badcf177a618f30949bb0b273fdc19ce95abe (patch) | |
| tree | 40769c2ee99d5a791c132de55e4164b8351a9b53 /src/checker/expr.cpp | |
| parent | 70f3361a343ad6e2f53937d1949a2f1b6e9ef227 (diff) | |
Nested procedures are declared inline but bodies checked later
Diffstat (limited to 'src/checker/expr.cpp')
| -rw-r--r-- | src/checker/expr.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/checker/expr.cpp b/src/checker/expr.cpp index 429b5e6ba..0d1306408 100644 --- a/src/checker/expr.cpp +++ b/src/checker/expr.cpp @@ -805,9 +805,7 @@ void check_identifier(Checker *c, Operand *o, AstNode *n, Type *named_type, Cycl if (n->Ident.string == make_string("_")) { error(n->Ident, "`_` cannot be used as a value type"); } else { - auto *entries = c->context.scope->elements.entries; - error(n->Ident, - "Undeclared name: %.*s", LIT(n->Ident.string)); + error(n->Ident, "Undeclared name: %.*s", LIT(n->Ident.string)); } o->type = t_invalid; o->mode = Addressing_Invalid; |