Skip to content

Commit

Permalink
Fix #1345
Browse files Browse the repository at this point in the history
  • Loading branch information
mgtm98 committed Oct 11, 2024
1 parent 5ef8cc2 commit 71196a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jac/jaclang/compiler/symtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 71196a2

Please sign in to comment.