From 19cc77dad301225754bdc797e2bd55f580775048 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Thu, 11 Aug 2016 21:53:44 +0100 Subject: Code generation for procedure literals --- src/parser.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/parser.cpp') diff --git a/src/parser.cpp b/src/parser.cpp index ec4918430..026ceac03 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -1018,10 +1018,13 @@ AstNode *parse_operand(AstFile *f, b32 lhs) { return type; } else { AstNode *body; + AstScope *curr_scope = f->curr_scope; + f->curr_scope = scope; f->expr_level++; body = parse_body(f, scope); f->expr_level--; + f->curr_scope = curr_scope; return make_procedure_literal(f, type, body); } -- cgit v1.2.3