mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 04:09:05 +00:00
feat: add HomogenousTuple
fix: iterator bugs
This commit is contained in:
parent
e220381fa2
commit
86cfe8f81a
5 changed files with 105 additions and 97 deletions
|
@ -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)?;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue