Skip to content

Commit e5f7d76

Browse files
committed
fix: enable lbound always
1 parent 95c18a8 commit e5f7d76

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/symbols/id_/ref/arrayref.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,14 @@ def t(self):
6262
return "$" + self._t # Local string variables (and parameters) use '$' (see backend)
6363

6464
@property
65-
def bounds(self):
65+
def bounds(self) -> SymbolBOUNDLIST:
6666
return self.parent.children[0]
6767

6868
@bounds.setter
6969
def bounds(self, value: SymbolBOUNDLIST):
7070
assert isinstance(value, SymbolBOUNDLIST)
7171
self.parent.children = [value]
72+
73+
@property
74+
def is_zero_based(self) -> bool:
75+
return all(bound.lower == 0 for bound in self.bounds)

0 commit comments

Comments
 (0)