lcompilers / lpython

Python compiler
https://lpython.org/
Other
1.37k stars 156 forks source link

Allow subscripts to have methods called #2735

Open advikkabra opened 1 week ago

advikkabra commented 1 week ago
g: dict[i32, list[i32]] = {}
g[0] = []
g[0].append(1)

Now this code can work, as previously subscripts couldn't have methods called on them (a[b].c()) I am not sure how/where to test this.