mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
fix: infinite loop
This commit is contained in:
parent
29b725423d
commit
9b6d19a8f4
1 changed files with 3 additions and 0 deletions
|
@ -1033,6 +1033,9 @@ impl Context {
|
|||
);
|
||||
for sup in self.super_classes.iter() {
|
||||
if let Some((_, sup_ctx)) = namespace.get_nominal_type_ctx(sup) {
|
||||
if sup_ctx.name == self.name {
|
||||
continue;
|
||||
}
|
||||
attrs.guaranteed_extend(sup_ctx.type_dir(namespace));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue