Fix missing indent call (#7346)

This commit is contained in:
Joshua Warner 2024-12-11 21:27:00 -08:00
parent 07f7252573
commit 8701b922b4
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
5 changed files with 96 additions and 0 deletions

View file

@ -0,0 +1,4 @@
il3 \k -> # w#z
CCC @C # i
(t! K) : i
C

View file

@ -0,0 +1,86 @@
@0-31 SpaceAfter(
Apply(
@0-3 Var {
module_name: "",
ident: "il3",
},
[
@3-31 Closure(
[
@4-5 Identifier {
ident: "k",
},
],
@13-31 SpaceBefore(
Defs(
Defs {
tags: [
EitherIndex(0),
],
regions: [
@13-28,
],
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: [
Alias {
header: TypeHeader {
name: @13-16 "CCC",
vars: [
@16-18 OpaqueRef(
"@C",
),
@22-25 SpaceBefore(
Apply(
@22-24 Identifier {
ident: "t!",
},
[
@24-25 Tag(
"K",
),
],
),
[
LineComment(
"i",
),
],
),
],
},
ann: @27-28 BoundVariable(
"i",
),
},
],
value_defs: [],
},
@30-31 SpaceBefore(
Tag(
"C",
),
[
Newline,
],
),
),
[
LineComment(
"w#z",
),
],
),
),
],
Space,
),
[
Newline,
],
)

View file

@ -0,0 +1,4 @@
il3\k->#w#z
CCC@C(#i
t!K):i
C

View file

@ -596,6 +596,7 @@ mod test_snapshots {
pass/record_updater_var_apply.expr,
pass/record_with_if.expr,
pass/record_with_lots_of_newlines.expr,
pass/repr_7346.expr,
pass/requires_type.header,
pass/return_apply_newline.expr,
pass/return_field_access_in_parens.expr,