mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Fix lifting of backpassing
This commit is contained in:
parent
2098ccd137
commit
ea1ecb9e68
5 changed files with 83 additions and 1 deletions
|
@ -0,0 +1,5 @@
|
|||
(
|
||||
b,
|
||||
M <- f
|
||||
3,
|
||||
)
|
|
@ -0,0 +1,39 @@
|
|||
Tuple(
|
||||
[
|
||||
@1-2 SpaceAfter(
|
||||
Var {
|
||||
module_name: "",
|
||||
ident: "b",
|
||||
},
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
@4-13 Backpassing(
|
||||
[
|
||||
@4-5 Tag(
|
||||
"M",
|
||||
),
|
||||
],
|
||||
@7-8 Var {
|
||||
module_name: "",
|
||||
ident: "f",
|
||||
},
|
||||
@9-13 SpaceBefore(
|
||||
ParensAround(
|
||||
SpaceAfter(
|
||||
Num(
|
||||
"3",
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
|
@ -0,0 +1,4 @@
|
|||
(b
|
||||
,M<-f
|
||||
(3
|
||||
))
|
|
@ -309,6 +309,7 @@ mod test_snapshots {
|
|||
pass/apply_unary_not.expr,
|
||||
pass/arg_pattern_as.expr,
|
||||
pass/backpassing_bananza.expr,
|
||||
pass/backpassing_in_parens_in_tuple.expr,
|
||||
pass/bang_newline_double_accessor.expr,
|
||||
pass/basic_apply.expr,
|
||||
pass/basic_docs.expr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue