hdl.ast: fix Array not being indexable by ValueCastable
This commit is contained in:
parent
5d9ad62f36
commit
cc9fe89049
2 changed files with 14 additions and 0 deletions
|
|
@ -1382,6 +1382,8 @@ class Array(MutableSequence):
|
|||
self._mutable = True
|
||||
|
||||
def __getitem__(self, index):
|
||||
if isinstance(index, ValueCastable):
|
||||
index = Value.cast(index)
|
||||
if isinstance(index, Value):
|
||||
if self._mutable:
|
||||
self._proxy_at = tracer.get_src_loc()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue