mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Don't simplify backpassing record assignment
This commit is contained in:
parent
c6d5983ff2
commit
10e7e24184
5 changed files with 72 additions and 0 deletions
|
@ -991,6 +991,7 @@ pub fn fmt_body<'a>(
|
|||
&& pattern_extracted.after.iter().all(|s| s.is_newline())
|
||||
&& !matches!(body.extract_spaces().item, Expr::Defs(..))
|
||||
&& !matches!(body.extract_spaces().item, Expr::Return(..))
|
||||
&& !matches!(body.extract_spaces().item, Expr::Backpassing(..))
|
||||
&& !starts_with_expect_ident(body)
|
||||
} else {
|
||||
false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue