mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-06 21:06:18 -04:00
Code generation for procedure literals
This commit is contained in:
1 parent
4c467b118d
commit
19cc77dad3
11 files changed
+341
-468
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user