Skip to content

Commit

Permalink
fix: sub-unification bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mtshiba committed Sep 21, 2024
1 parent 9a6b489 commit 6890d82
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/erg_compiler/context/unify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
}
}
}
Expand Down Expand Up @@ -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}")
}
}
}
Expand Down

0 comments on commit 6890d82

Please sign in to comment.