Make sure patterns continue to parse as such

This commit is contained in:
Joshua Warner 2024-12-01 22:10:26 -08:00
parent ea1ecb9e68
commit 64164eb1f4
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
6 changed files with 91 additions and 4 deletions

View file

@ -1,4 +1,4 @@
UserId x : [UserId I64]
(UserId x) : [UserId I64]
(UserId x) = UserId 42
x

View file

@ -0,0 +1,44 @@
Defs(
Defs {
tags: [
EitherIndex(2147483648),
],
regions: [
@0-8,
],
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: [
Annotation(
@1-5 Apply(
@2-3 Tag(
"J",
),
[
@4-5 Identifier {
ident: "x",
},
],
),
@7-8 BoundVariable(
"i",
),
),
],
},
@9-10 SpaceBefore(
Var {
module_name: "",
ident: "i",
},
[
Newline,
],
),
)