We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TestServer
1 parent b0f9c9a commit 2832527Copy full SHA for 2832527
compiler/src/dotty/tools/dotc/util/DiffUtil.scala
@@ -69,7 +69,7 @@ object DiffUtil {
69
* differences are highlighted.
70
*/
71
def mkColoredLineDiff(expected: Seq[String], actual: Seq[String]): String = {
72
- val expectedSize = EOF.length max expected.map(_.length).max
+ val expectedSize = EOF.length max expected.maxBy(_.length).length
73
actual.padTo(expected.length, "").zip(expected.padTo(actual.length, "")).map { case (act, exp) =>
74
mkColoredLineDiff(exp, act, expectedSize)
75
}.mkString(System.lineSeparator)
0 commit comments