mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Actually parse to Expr::Tuple... whoops!
This commit is contained in:
parent
6c15cc750f
commit
8d79182730
3 changed files with 3 additions and 3 deletions
|
@ -180,7 +180,7 @@ pub enum Expr<'a> {
|
|||
|
||||
Record(Collection<'a, Loc<AssignedField<'a, Expr<'a>>>>),
|
||||
|
||||
Tuple(Collection<'a, Loc<Expr<'a>>>),
|
||||
Tuple(Collection<'a, &'a Loc<Expr<'a>>>),
|
||||
|
||||
// Lookups
|
||||
Var {
|
||||
|
|
|
@ -98,7 +98,7 @@ fn loc_expr_in_parens_help<'a>() -> impl Parser<'a, Loc<Expr<'a>>, EInParens<'a>
|
|||
if elements.len() > 1 {
|
||||
Ok((
|
||||
MadeProgress,
|
||||
Loc::at(region, Expr::List(elements.ptrify_items(arena))),
|
||||
Loc::at(region, Expr::Tuple(elements.ptrify_items(arena))),
|
||||
state,
|
||||
))
|
||||
} else if elements.is_empty() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
List(
|
||||
Tuple(
|
||||
[
|
||||
@1-2 Num(
|
||||
"1",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue