mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 18:58:30 +00:00
fix: planner bug
This commit is contained in:
parent
a1a89cab27
commit
f676f22d6c
7 changed files with 275 additions and 327 deletions
|
@ -449,7 +449,9 @@ impl<'c, 'q, 'l, L: Locational> Dereferencer<'c, 'q, 'l, L> {
|
|||
new_dic
|
||||
.entry(k)
|
||||
.and_modify(|old_v| {
|
||||
*old_v = self.ctx.union_tp(&mem::take(old_v), &v).unwrap();
|
||||
if let Some(union) = self.ctx.union_tp(&mem::take(old_v), &v) {
|
||||
*old_v = union;
|
||||
}
|
||||
})
|
||||
.or_insert(v);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue