mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
Update desugar.rs
This commit is contained in:
parent
c5e1da6b7b
commit
d72f56462e
1 changed files with 5 additions and 0 deletions
|
@ -606,6 +606,11 @@ impl Desugarer {
|
|||
let def = Def::new(Signature::Subr(subr), body);
|
||||
new.push(Expr::Def(def));
|
||||
}
|
||||
Expr::Dummy(dummy) => {
|
||||
let loc = dummy.loc;
|
||||
let new_dummy = self.desugar_pattern(dummy.into_iter());
|
||||
new.push(Expr::Dummy(Dummy::new(loc, new_dummy)));
|
||||
}
|
||||
other => {
|
||||
new.push(self.rec_desugar_lambda_pattern(other));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue