mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 20:34:44 +00:00
Update parse.rs
This commit is contained in:
parent
8cb7dee425
commit
aa2aa79de9
1 changed files with 2 additions and 1 deletions
|
@ -926,7 +926,8 @@ impl Parser {
|
|||
self.counter.inc();
|
||||
let block = self.try_reduce_block().map_err(|_| self.stack_dec())?;
|
||||
let body = DefBody::new(op, block, self.counter);
|
||||
stack.push(ExprOrOp::Expr(Expr::Def(Def::new(sig, body))));
|
||||
self.level -= 1;
|
||||
return Ok(Expr::Def(Def::new(sig, body)));
|
||||
}
|
||||
Some(op) if op.category_is(TC::LambdaOp) => {
|
||||
let op = self.lpop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue