Skip to content

Commit 14112c4

Browse files
authored
Fix SeparateCompilationSource toString (#22365)
2 parents 4219950 + 7d7e2dc commit 14112c4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ trait ParallelTesting extends RunnerOrchestration { self =>
156156
}
157157
}
158158
}
159+
160+
final override def toString: String = sourceFiles match {
161+
case Array(f) => f.getPath
162+
case _ => outDir.getPath.stripPrefix(defaultOutputDir).stripPrefix(name).stripPrefix("/")
163+
}
159164
}
160165

161166
private sealed trait FromTastyCompilationMode
@@ -176,8 +181,6 @@ trait ParallelTesting extends RunnerOrchestration { self =>
176181
decompilation: Boolean = false
177182
) extends TestSource {
178183
def sourceFiles: Array[JFile] = files.filter(isSourceFile)
179-
180-
override def toString() = sourceFiles match { case Array(f) => f.getPath case _ => outDir.getPath }
181184
}
182185

183186
/** A test source whose files will be compiled separately according to their

0 commit comments

Comments
 (0)