mirror of
https://github.com/erg-lang/erg.git
synced 2025-07-24 05:26:24 +00:00
fix: misuse forced_undoable_link
This commit is contained in:
parent
54db53bc02
commit
a484f0ff9a
3 changed files with 16 additions and 10 deletions
|
@ -751,7 +751,7 @@ impl Context {
|
|||
let (rsub, rsup) = sup_fv.get_subsup().unwrap();
|
||||
// ?T(<: Add(?T))
|
||||
// ?U(:> {1, 2}, <: Add(?U)) ==> {1, 2}
|
||||
sup_fv.forced_undoable_link(&rsub);
|
||||
sup_fv.dummy_link();
|
||||
if lsub.qual_name() == rsub.qual_name() {
|
||||
for (lps, rps) in lsub.typarams().iter().zip(rsub.typarams().iter()) {
|
||||
self.sub_unify_tp(lps, rps, None, loc, false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue