Skip to content

Commit 6890d82

Browse files
committed
fix: sub-unification bug
1 parent 9a6b489 commit 6890d82

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/erg_compiler/context/unify.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,8 @@ impl<'c, 'l, 'u, L: Locational> Unifier<'c, 'l, 'u, L> {
14401440
let constr = Constraint::new_supertype_of(maybe_sub.clone());
14411441
maybe_sup.update_constraint(constr, self.undoable, true);
14421442
} else {
1443-
todo!("{maybe_sub} <: {maybe_sup}")
1443+
// ?T: GenericDict
1444+
// todo!("{maybe_sub} <: {maybe_sup}")
14441445
}
14451446
}
14461447
}
@@ -1518,7 +1519,8 @@ impl<'c, 'l, 'u, L: Locational> Unifier<'c, 'l, 'u, L> {
15181519
let constr = Constraint::new_subtype_of(maybe_sup.clone());
15191520
maybe_sub.update_constraint(constr, self.undoable, true);
15201521
} else {
1521-
todo!("{maybe_sub} <: {maybe_sup}")
1522+
// ?T: GenericDict
1523+
// todo!("{maybe_sub} <: {maybe_sup}")
15221524
}
15231525
}
15241526
}

0 commit comments

Comments
 (0)