mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Don't simplify backpassing record assignment
This commit is contained in:
parent
c6d5983ff2
commit
10e7e24184
5 changed files with 72 additions and 0 deletions
|
@ -0,0 +1,4 @@
|
|||
{} =
|
||||
i <- t
|
||||
C
|
||||
C
|
|
@ -0,0 +1,62 @@
|
|||
@0-14 SpaceAfter(
|
||||
Defs(
|
||||
Defs {
|
||||
tags: [
|
||||
EitherIndex(2147483648),
|
||||
],
|
||||
regions: [
|
||||
@0-12,
|
||||
],
|
||||
space_before: [
|
||||
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 },
|
||||
],
|
||||
space_after: [
|
||||
Slice<roc_parse::ast::CommentOrNewline> { start: 0, length: 0 },
|
||||
],
|
||||
spaces: [],
|
||||
type_defs: [],
|
||||
value_defs: [
|
||||
Body(
|
||||
@0-2 RecordDestructure(
|
||||
[],
|
||||
),
|
||||
@5-12 SpaceBefore(
|
||||
Backpassing(
|
||||
[
|
||||
@5-6 Identifier {
|
||||
ident: "i",
|
||||
},
|
||||
],
|
||||
@8-9 Var {
|
||||
module_name: "",
|
||||
ident: "t",
|
||||
},
|
||||
@11-12 SpaceBefore(
|
||||
Tag(
|
||||
"C",
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
},
|
||||
@13-14 SpaceBefore(
|
||||
Tag(
|
||||
"C",
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
)
|
|
@ -0,0 +1,4 @@
|
|||
{}=
|
||||
i<-t
|
||||
C
|
||||
C
|
|
@ -402,6 +402,7 @@ mod test_snapshots {
|
|||
pass/empty_package_header.header,
|
||||
pass/empty_platform_header.header,
|
||||
pass/empty_record.expr,
|
||||
pass/empty_record_assign_backpassing.expr,
|
||||
pass/empty_record_assign_expect_bang.expr,
|
||||
pass/empty_record_assign_implements.expr,
|
||||
pass/empty_record_assign_return.expr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue