mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-01 05:24:15 +00:00
Fix issue with multibackpassing in closure in binop
This commit is contained in:
parent
0bf249afcb
commit
787fec6b3f
5 changed files with 50 additions and 1 deletions
|
|
@ -0,0 +1,3 @@
|
|||
!\t ->
|
||||
m, i <- 0
|
||||
s
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
@0-16 SpaceAfter(
|
||||
UnaryOp(
|
||||
@1-16 Closure(
|
||||
[
|
||||
@2-3 Identifier {
|
||||
ident: "t",
|
||||
},
|
||||
],
|
||||
@7-16 SpaceBefore(
|
||||
Backpassing(
|
||||
[
|
||||
@7-8 Identifier {
|
||||
ident: "m",
|
||||
},
|
||||
@9-10 Identifier {
|
||||
ident: "i",
|
||||
},
|
||||
],
|
||||
@12-13 Num(
|
||||
"0",
|
||||
),
|
||||
@15-16 SpaceBefore(
|
||||
Var {
|
||||
module_name: "",
|
||||
ident: "s",
|
||||
},
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
),
|
||||
@0-1 Not,
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
)
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
!\t->
|
||||
m,i<-0
|
||||
s
|
||||
|
|
@ -551,6 +551,7 @@ mod test_snapshots {
|
|||
pass/nonempty_hosted_header.header,
|
||||
pass/nonempty_package_header.header,
|
||||
pass/nonempty_platform_header.header,
|
||||
pass/not_closure_with_multibackpassing.expr,
|
||||
pass/not_double_parens.expr,
|
||||
pass/not_multiline_string.expr,
|
||||
pass/not_record_updater.expr,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue