Open mgtm98 opened 1 week ago
I investigated the issue and found that the issue is with SymbolTable
::inherit_baseclasses_sym
in the following line
self.inherit.append(found.decl.sym_tab)
found.decl.sym_tab
points to the base class in case of jac module but in case of python class it point to the whole module.
@marsninja we need to discuss this
@mgtm98 Is there anything tricky about this fix, seems easy to track down the discrepancy. It's certainly worth creating a pr to fix. Did you run into an issue while working on it?
A symbol from the base class is not visible in the sub class, after investigation I found that the issue is only with base classes that come from python imported modules
To Reproduce
Issue can be seen in the following line