mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-08 04:50:32 +00:00
Fix as pattern formatting inside apply
This commit is contained in:
parent
f8b0be725c
commit
04612fb2cb
5 changed files with 48 additions and 1 deletions
|
@ -395,7 +395,7 @@ fn fmt_pattern_only(
|
|||
}
|
||||
|
||||
Pattern::As(pattern, pattern_as) => {
|
||||
let needs_parens = parens == Parens::InAsPattern;
|
||||
let needs_parens = parens == Parens::InAsPattern || parens == Parens::InApply;
|
||||
|
||||
if needs_parens {
|
||||
buf.indent(indent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue