Support array type

This commit is contained in:
Diego Augusto 2024-07-04 22:02:51 +00:00 committed by Sonny Piers
parent f1cf70b6eb
commit da5b9909fc
16 changed files with 133 additions and 4 deletions

View file

@ -200,6 +200,10 @@ class ArrayType(GirType):
def assignable_to(self, other: GirType) -> bool:
return isinstance(other, ArrayType) and self._inner.assignable_to(other._inner)
@property
def inner(self) -> GirType:
return self._inner
@property
def name(self) -> str:
return self._inner.name + "[]"