mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
fix: sub-unification bug
This commit is contained in:
parent
9a6b4899e6
commit
6890d82441
1 changed files with 4 additions and 2 deletions
|
@ -1440,7 +1440,8 @@ impl<'c, 'l, 'u, L: Locational> Unifier<'c, 'l, 'u, L> {
|
|||
let constr = Constraint::new_supertype_of(maybe_sub.clone());
|
||||
maybe_sup.update_constraint(constr, self.undoable, true);
|
||||
} else {
|
||||
todo!("{maybe_sub} <: {maybe_sup}")
|
||||
// ?T: GenericDict
|
||||
// todo!("{maybe_sub} <: {maybe_sup}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1518,7 +1519,8 @@ impl<'c, 'l, 'u, L: Locational> Unifier<'c, 'l, 'u, L> {
|
|||
let constr = Constraint::new_subtype_of(maybe_sup.clone());
|
||||
maybe_sub.update_constraint(constr, self.undoable, true);
|
||||
} else {
|
||||
todo!("{maybe_sub} <: {maybe_sup}")
|
||||
// ?T: GenericDict
|
||||
// todo!("{maybe_sub} <: {maybe_sup}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue