fix(parser): fix conflict

This commit is contained in:
GreasySlug 2023-04-01 11:28:31 +09:00
parent 855be06c26
commit 723e75813e
2 changed files with 3 additions and 3 deletions

View file

@ -2168,10 +2168,11 @@ impl Parser {
obj = obj.attr_expr(ident);
}
NatLit => {
let index = Literal::from(self.lpop());
let index = Literal::from(token);
obj = obj.tuple_attr_expr(index);
}
Newline => {
self.restore(token);
self.restore(vis);
break;
}
@ -3017,7 +3018,6 @@ impl Parser {
debug_exit_info!(self);
return Err(());
};
self.skip();
if let Some(args) = self
.opt_reduce_args(false)
.transpose()