chore: add Unifier::sub_unify_value

This commit is contained in:
Shunsuke Shibayama 2024-05-08 14:18:37 +09:00
parent 4bd7de752e
commit 0f04d27c0e
3 changed files with 108 additions and 5 deletions

View file

@ -503,6 +503,7 @@ impl<'c, 'q, 'l, L: Locational> Dereferencer<'c, 'q, 'l, L> {
fields: new_fields,
})
}
ValueObj::UnsizedList(v) => Ok(ValueObj::UnsizedList(Box::new(self.deref_value(*v)?))),
_ => Ok(val),
}
}
@ -767,6 +768,7 @@ impl<'c, 'q, 'l, L: Locational> Dereferencer<'c, 'q, 'l, L> {
let pred = self.deref_pred(*pred)?;
Ok(!pred)
}
Predicate::Value(v) => self.deref_value(v).map(Predicate::Value),
_ => Ok(pred),
}
}