mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Make sure patterns continue to parse as such
This commit is contained in:
parent
ea1ecb9e68
commit
64164eb1f4
6 changed files with 91 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
UserId x : [UserId I64]
|
||||
(UserId x) : [UserId I64]
|
||||
(UserId x) = UserId 42
|
||||
|
||||
x
|
|
@ -0,0 +1,2 @@
|
|||
(J x) : i
|
||||
i
|
|
@ -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,
|
||||
],
|
||||
),
|
||||
)
|
|
@ -0,0 +1,2 @@
|
|||
((J)x):i
|
||||
i
|
Loading…
Add table
Add a link
Reference in a new issue