mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-01 13:34:15 +00:00
Add lifting for ext values in types
This commit is contained in:
parent
64164eb1f4
commit
48c941d542
5 changed files with 125 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
t : ()n #
|
||||
#
|
||||
|
||||
p #
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
SpaceAfter(
|
||||
Defs(
|
||||
Defs {
|
||||
tags: [
|
||||
EitherIndex(2147483648),
|
||||
],
|
||||
regions: [
|
||||
@0-11,
|
||||
],
|
||||
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(
|
||||
@0-1 Identifier {
|
||||
ident: "t",
|
||||
},
|
||||
@2-11 Tuple {
|
||||
elems: [],
|
||||
ext: Some(
|
||||
@5-6 SpaceAfter(
|
||||
BoundVariable(
|
||||
"n",
|
||||
),
|
||||
[
|
||||
LineComment(
|
||||
"",
|
||||
),
|
||||
LineComment(
|
||||
"",
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
},
|
||||
),
|
||||
],
|
||||
},
|
||||
@12-13 SpaceBefore(
|
||||
Var {
|
||||
module_name: "",
|
||||
ident: "p",
|
||||
},
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
),
|
||||
),
|
||||
[
|
||||
LineComment(
|
||||
"",
|
||||
),
|
||||
],
|
||||
)
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
t:()(n#
|
||||
#
|
||||
)
|
||||
p#
|
||||
|
|
@ -344,6 +344,7 @@ mod test_snapshots {
|
|||
pass/comment_in_backpassing_args.expr,
|
||||
pass/comment_in_closure_pat.expr,
|
||||
pass/comment_in_closure_pat_apply.expr,
|
||||
pass/comment_in_tuple_ext.expr,
|
||||
pass/comment_indent_in_parens.expr,
|
||||
pass/comment_inside_empty_list.expr,
|
||||
pass/comment_with_non_ascii.expr,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue