mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
chore: fill missing arms
This commit is contained in:
parent
c74513f507
commit
ac80cbba87
6 changed files with 73 additions and 5 deletions
|
@ -1093,6 +1093,11 @@ impl<'c, 'l, 'u, L: Locational> Unifier<'c, 'l, 'u, L> {
|
|||
// * sub_unify({0}, ?T(:> {1}, <: Nat)): (?T(:> {0, 1}, <: Nat))
|
||||
// * sub_unify(Bool, ?T(<: Bool or Y)): (?T == Bool)
|
||||
// * sub_unify(Float, ?T(<: Structural{ .imag = ?U })) ==> ?U == Float
|
||||
if let Type::Refinement(refine) = maybe_sub {
|
||||
if refine.t.addr_eq(maybe_sup) {
|
||||
return Ok(());
|
||||
}
|
||||
}
|
||||
if let Some((sub, mut sup)) = sup_fv.get_subsup() {
|
||||
if sup.is_structural() || !sup.is_recursive() {
|
||||
self.sub_unify(maybe_sub, &sup)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue