mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
chore: improve type inference system
This commit is contained in:
parent
d0bae66450
commit
06898bd793
11 changed files with 332 additions and 43 deletions
|
@ -774,6 +774,7 @@ impl<'c, 'l, 'u, L: Locational> Unifier<'c, 'l, 'u, L> {
|
|||
for (lps, rps) in lsub.typarams().iter().zip(rsub.typarams().iter()) {
|
||||
self.sub_unify_tp(lps, rps, None, false).map_err(|errs| {
|
||||
sup_fv.undo();
|
||||
sub_fv.undo();
|
||||
errs
|
||||
})?;
|
||||
}
|
||||
|
@ -784,6 +785,7 @@ impl<'c, 'l, 'u, L: Locational> Unifier<'c, 'l, 'u, L> {
|
|||
for (lps, rps) in lsup.typarams().iter().zip(rsup.typarams().iter()) {
|
||||
self.sub_unify_tp(lps, rps, None, false).map_err(|errs| {
|
||||
sup_fv.undo();
|
||||
sub_fv.undo();
|
||||
errs
|
||||
})?;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue