feat: add HomogenousTuple

fix: iterator bugs
This commit is contained in:
Shunsuke Shibayama 2024-04-27 00:28:03 +09:00
parent e220381fa2
commit 86cfe8f81a
5 changed files with 105 additions and 97 deletions

View file

@ -1042,7 +1042,7 @@ impl<'c, 'q, 'l, L: Locational> Dereferencer<'c, 'q, 'l, L> {
fv: &Free<Type>,
) -> TyCheckResult<Type> {
let opt_res = self.ctx.shared().gen_cache.get(fv);
if opt_res.is_none() && self.ctx.is_trait(&super_t) {
if opt_res.is_none() && self.ctx.is_class(&sub_t) && self.ctx.is_trait(&super_t) {
self.ctx
.check_trait_impl(&sub_t, &super_t, self.qnames, self.loc)?;
}