diff options
| author | gingerBill <bill+github@gingerbill.org> | 2016-08-11 21:53:44 +0100 |
|---|---|---|
| committer | gingerBill <bill+github@gingerbill.org> | 2016-08-11 21:53:44 +0100 |
| commit | 19cc77dad301225754bdc797e2bd55f580775048 (patch) | |
| tree | ad00dfa171745b5c66d0e00391aa2f21c48d2872 /src/parser.cpp | |
| parent | 4c467b118d12ca6fabd018e4c0295096fa4d399b (diff) | |
Code generation for procedure literals
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); } |