Update mod.rs

This commit is contained in:
Shunsuke Shibayama 2025-02-20 13:00:10 +09:00
parent a801eebca1
commit 6e21d53f71

View file

@ -5417,14 +5417,14 @@ impl Type {
pub fn contained_ts(&self) -> Set<Type> {
match self {
Self::FreeVar(fv) if fv.is_linked() => fv.unwrap_linked().contained_ts(),
Self::FreeVar(fv) if fv.constraint_is_sandwiched() => {
/*Self::FreeVar(fv) if fv.constraint_is_sandwiched() => {
let (sub, sup) = fv.get_subsup().unwrap();
fv.do_avoiding_recursion(|| {
set! { self.clone() }
.union(&sub.contained_ts())
.union(&sup.contained_ts())
})
}
}*/
Self::FreeVar(_) => set! { self.clone() },
Self::Refinement(refine) => refine.t.contained_ts(),
Self::Ref(t) => t.contained_ts(),