mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Fix nested as
This commit is contained in:
parent
05ff2efec9
commit
e068ae6b5a
5 changed files with 46 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
|||
0, (m as l) as l <- w
|
||||
i
|
|
@ -0,0 +1,40 @@
|
|||
@0-21 SpaceAfter(
|
||||
Backpassing(
|
||||
[
|
||||
@0-1 NumLiteral(
|
||||
"0",
|
||||
),
|
||||
@4-15 As(
|
||||
@4-10 As(
|
||||
@4-5 Identifier {
|
||||
ident: "m",
|
||||
},
|
||||
PatternAs {
|
||||
spaces_before: [],
|
||||
identifier: @9-10 "l",
|
||||
},
|
||||
),
|
||||
PatternAs {
|
||||
spaces_before: [],
|
||||
identifier: @14-15 "l",
|
||||
},
|
||||
),
|
||||
],
|
||||
@18-19 Var {
|
||||
module_name: "",
|
||||
ident: "w",
|
||||
},
|
||||
@20-21 SpaceBefore(
|
||||
Var {
|
||||
module_name: "",
|
||||
ident: "i",
|
||||
},
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
)
|
|
@ -0,0 +1,2 @@
|
|||
0,((m as l)as l)<-w
|
||||
i
|
|
@ -394,6 +394,7 @@ mod test_snapshots {
|
|||
pass/defs_suffixed_middle_extra_indents.moduledefs,
|
||||
pass/destructure_tag_assignment.expr,
|
||||
pass/docs.expr,
|
||||
pass/double_parens_as_in_backpassing_pat.expr,
|
||||
pass/double_parens_comment_tuple_pat.expr,
|
||||
pass/double_space_before.expr,
|
||||
pass/effectful_closure_statements.expr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue