You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
p=5g=6classA:
defstart () ->int:
return0
import:py hello_py;
class B :hello_py.A: {}
with entry {
a = A();
b = B();
a.start();
b.start();
}
To Reproduce
export JACLANG_AST_SYMBOL_INFO_DETAILED=1
jac tool it ast t.jac
Issue can be seen in the following line
21:5 - 21:14 | +-- FuncCall,
21:5 - 21:12 | | +-- AtomTrailer,
21:5 - 21:6 | | | +-- Name - b - Type: hello2.B, SymbolTable: B, SymbolPath: hello2.b
21:6 - 21:7 | | | +-- Token - .,
21:7 - 21:12 | | | +-- Name - start - Type: builtins.int, SymbolTable: int, SymbolPath: <No Symbol is associated with this node> <=== Issue is here
21:12 - 21:13 | | +-- Token - (,
21:13 - 21:14 | | +-- Token - ),
The text was updated successfully, but these errors were encountered:
@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
The text was updated successfully, but these errors were encountered: