Skip to content

Commit

Permalink
Add test with extra relativeToLhsLastLine indent
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Nov 3, 2022
1 parent 8266921 commit eb8c1b5
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions scalafmt-tests/src/test/resources/test/IndentOperator.stat
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}

0 comments on commit eb8c1b5

Please sign in to comment.