Skip to content

Commit

Permalink
AvoidInfix: test enclosed with RedundantParens
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Jun 1, 2022
1 parent 3147aec commit 37e606c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scalafmt-tests/src/test/resources/rewrite/AvoidInfix.stat
Original file line number Diff line number Diff line change
Expand Up @@ -410,3 +410,19 @@ rewrite.neverInfix.includeFilters = [ "[^*]+" ]
foo baz (_)
>>>
foo.baz(_)
<<< enclosed in parens on separate lines, with RedundantParens
rewrite.rules = [AvoidInfix, RedundantParens]
===
object a {
val foo = bar
(
a baz b
)
}
>>>
object a {
val foo = bar

a.baz(b)

}

0 comments on commit 37e606c

Please sign in to comment.