mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-31 17:17:26 +00:00
Fix pnc apply in unary negate
This commit is contained in:
parent
05033ac40b
commit
2bd03ef16b
5 changed files with 46 additions and 6 deletions
|
@ -0,0 +1,5 @@
|
|||
""
|
||||
-(
|
||||
"""
|
||||
"""()
|
||||
)
|
|
@ -0,0 +1,26 @@
|
|||
@0-12 SpaceAfter(
|
||||
Apply(
|
||||
@0-2 Str(
|
||||
PlainLine(
|
||||
"",
|
||||
),
|
||||
),
|
||||
[
|
||||
@3-12 UnaryOp(
|
||||
@4-12 PncApply(
|
||||
@4-10 Str(
|
||||
Block(
|
||||
[],
|
||||
),
|
||||
),
|
||||
[],
|
||||
),
|
||||
@3-4 Negate,
|
||||
),
|
||||
],
|
||||
Space,
|
||||
),
|
||||
[
|
||||
Newline,
|
||||
],
|
||||
)
|
|
@ -0,0 +1 @@
|
|||
"" -""""""()
|
|
@ -691,6 +691,7 @@ mod test_snapshots {
|
|||
pass/stmt_parens_minus.expr,
|
||||
pass/stmts_in_empty_record_assignment.expr,
|
||||
pass/str_block_multiple_newlines.expr,
|
||||
pass/str_minus_pnc_call_multiline_str.expr,
|
||||
pass/string_without_escape.expr,
|
||||
pass/sub_var_with_spaces.expr,
|
||||
pass/sub_with_spaces.expr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue