diff --git a/jac/jaclang/compiler/symtable.py b/jac/jaclang/compiler/symtable.py index 10b9ae6209..4b4b4c1ed7 100644 --- a/jac/jaclang/compiler/symtable.py +++ b/jac/jaclang/compiler/symtable.py @@ -256,8 +256,9 @@ def inherit_baseclasses_sym(self, node: ast.Architype | ast.Enum) -> None: isinstance(base_cls, ast.AstSymbolNode) and (found := self.use_lookup(base_cls)) and found + and found.fetch_sym_tab ): - self.inherit.append(found.decl.sym_tab) + self.inherit.append(found.fetch_sym_tab) base_cls.name_spec.name_of = found.decl.name_of def pp(self, depth: Optional[int] = None) -> str: