Skip to content

Commit

Permalink
fix(parser): allow array type in struct
Browse files Browse the repository at this point in the history
  • Loading branch information
MilkeeyCat committed Sep 10, 2024
1 parent 3a346fe commit 8f5a426
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parser/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ impl Parser {
_ => todo!("Don't know what error to return yet"),
};
self.expect(&Token::Colon)?;
let type_ = self.parse_type()?;
let mut type_ = self.parse_type()?;
self.array_type(&mut type_)?;

match fields.iter().find(|(field_name, _)| field_name == &name) {
Some(_) => todo!("Don't know yet what error to return"),
Expand Down

0 comments on commit 8f5a426

Please sign in to comment.