Skip to content

Commit b5cdf4d

Browse files
committed
Show more for misplaced warn comment
1 parent 0f4be8a commit b5cdf4d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

compiler/test/dotty/tools/vulpix/ParallelTesting.scala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,12 @@ trait ParallelTesting extends RunnerOrchestration { self =>
812812
|${showLines("Unexpected warnings:", unexpected)}
813813
|$showDiagnostics
814814
|""".stripMargin.trim.linesIterator.mkString("\n", "\n", "")
815-
else if hasMissingAnnotations then s"\nWarnings found on incorrect row numbers when compiling $testSource\n$showDiagnostics"
815+
else if hasMissingAnnotations then
816+
s"""|Warnings found on incorrect row numbers when compiling $testSource
817+
|${showLines("Unfulfilled expectations:", expected)}
818+
|${showLines("Unexpected warnings:", unexpected)}
819+
|$showDiagnostics
820+
|""".stripMargin.trim.linesIterator.mkString("\n", "\n", "")
816821
else if !map.isEmpty then s"\nExpected warnings(s) have {<warning position>=<unreported warning>}: $map"
817822
else null
818823
end maybeFailureMessage

0 commit comments

Comments
 (0)