From 349badcf177a618f30949bb0b273fdc19ce95abe Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Sat, 24 Sep 2016 23:48:03 +0100 Subject: Nested procedures are declared inline but bodies checked later --- src/checker/expr.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/checker/expr.cpp') 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; -- cgit v1.2.3