mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-01 05:11:09 +00:00
Fix a pattern desugaring bug
This commit is contained in:
parent
6e839d6f03
commit
24b8f3f63d
2 changed files with 24 additions and 6 deletions
|
@ -76,7 +76,7 @@ impl Context {
|
|||
ast::VarPattern::Discard(_) => {
|
||||
return Ok(());
|
||||
}
|
||||
_ => todo!(),
|
||||
other => unreachable!("{other}"),
|
||||
};
|
||||
let vis = ident.vis();
|
||||
let kind = id.map_or(VarKind::Declared, VarKind::Defined);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue