diff --git a/scalafmt-tests/src/test/resources/test/IndentOperator.stat b/scalafmt-tests/src/test/resources/test/IndentOperator.stat index 0ffe9e9036..60ad3a80f6 100644 --- a/scalafmt-tests/src/test/resources/test/IndentOperator.stat +++ b/scalafmt-tests/src/test/resources/test/IndentOperator.stat @@ -4005,3 +4005,30 @@ object A { } } } +<<< #3327 with comment on separate line +maxColumn = 100 +indent.relativeToLhsLastLine = [match] +=== +object A { + protected def test(): IO[Test] = + test(test, test, None) + .flatMap { + case Some(test) => test(test).map(_.filter(_.test > test)) + case None => test(dataSetId) + } + .map(_.test()) + +/* Some comment */ +} +>>> +object A { + protected def test(): IO[Test] = + test(test, test, None) + .flatMap { + case Some(test) => test(test).map(_.filter(_.test > test)) + case None => test(dataSetId) + } + .map(_.test()) + + /* Some comment */ +}