parser: support array type in class props

This commit is contained in:
Ryan Chandler 2022-08-10 00:35:54 +01:00
parent 4068931aa1
commit d97e23db94
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA

View File

@ -965,7 +965,7 @@ impl Parser {
}
}
},
TokenKind::Question | TokenKind::Identifier(_) | TokenKind::QualifiedIdentifier(_) | TokenKind::FullyQualifiedIdentifier(_) => {
TokenKind::Question | TokenKind::Identifier(_) | TokenKind::QualifiedIdentifier(_) | TokenKind::FullyQualifiedIdentifier(_) | TokenKind::Array => {
let prop_type = self.type_string()?;
let var = self.var()?;
let mut value = None;