diff options
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |