From 63e83e179fe1461e37aa6f7a4404683b1bf88159 Mon Sep 17 00:00:00 2001 From: Albert Meltzer <7529386+kitbellew@users.noreply.github.com> Date: Fri, 4 Feb 2022 20:57:25 -0800 Subject: [PATCH] Add test with non-redundant parens and placeholder --- .../src/test/resources/rewrite/RedundantParens.stat | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scalafmt-tests/src/test/resources/rewrite/RedundantParens.stat b/scalafmt-tests/src/test/resources/rewrite/RedundantParens.stat index 57fd1922e6..39391a69a2 100644 --- a/scalafmt-tests/src/test/resources/rewrite/RedundantParens.stat +++ b/scalafmt-tests/src/test/resources/rewrite/RedundantParens.stat @@ -771,3 +771,13 @@ class Toto() { a } } +<<< #3105 +foo >>= (_.http(registry, port).map(Option.apply(_)).catchSome { + bar +}) +>>> +foo >>= _.http(registry, port) + .map(Option.apply(_)) + .catchSome { + bar + }