fix: infinite loop

This commit is contained in:
Shunsuke Shibayama 2023-03-16 11:57:15 +09:00
parent 29b725423d
commit 9b6d19a8f4

View file

@ -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));
}
}