Add test that failed on main

This commit is contained in:
Joshua Warner 2024-12-28 19:41:10 -05:00
parent 5e08515ed5
commit b87635e34b
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
4 changed files with 82 additions and 0 deletions

View file

@ -0,0 +1,6 @@
N : f
-> ((
u,
)I
-> *)
I

View file

@ -0,0 +1,72 @@
@0-25 SpaceAfter(
Defs(
Defs {
tags: [
EitherIndex(0),
],
regions: [
@0-23,
],
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: @0-1 "N",
vars: [],
},
ann: @5-20 Function(
[
@5-6 BoundVariable(
"f",
),
],
Pure,
@8-20 Function(
[
@8-17 Tuple {
elems: [
@12-13 SpaceBefore(
BoundVariable(
"u",
),
[
Newline,
],
),
],
ext: Some(
@16-17 Apply(
"",
"I",
[],
),
),
},
],
Pure,
@19-20 Wildcard,
),
),
},
],
value_defs: [],
},
@24-25 SpaceBefore(
Tag(
"I",
),
[
Newline,
],
),
),
[
Newline,
],
)

View file

@ -0,0 +1,3 @@
N:(((f->(((
u)))I->*)))
I

View file

@ -440,6 +440,7 @@ mod test_snapshots {
pass/fn_with_record_arg.expr,
pass/full_app_header.header,
pass/full_app_header_trailing_commas.header,
pass/func_ty_parens_crazyness.expr,
pass/function_effect_types.header,
pass/function_with_tuple_ext_type.expr,
pass/function_with_tuple_type.expr,