Also handle tuple accessors for multiline string checking

This commit is contained in:
Joshua Warner 2025-01-11 21:47:23 -08:00
parent d3c400b5e0
commit 316ec39af7
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
6 changed files with 59 additions and 1 deletions

View file

@ -0,0 +1,50 @@
@0-14 SpaceAfter(
Defs(
Defs {
tags: [
EitherIndex(2147483648),
],
regions: [
@0-12,
],
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: [
Body(
@0-1 Identifier {
ident: "i",
},
@2-12 TupleAccess(
PncApply(
@2-8 Str(
Block(
[],
),
),
[],
),
"1",
),
),
],
},
@13-14 SpaceBefore(
Var {
module_name: "",
ident: "p",
},
[
Newline,
],
),
),
[
Newline,
],
)

View file

@ -1,3 +1,3 @@
fallible!(args)
? \my_err ->
? |my_err|
my_err * 2