Skip to content

Commit 593498d

Browse files
authored
Merge pull request #14379 from dotty-staging/fix-#14376
2 parents 746b9c6 + b022b55 commit 593498d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/test/dotty/tools/utils.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def assertThrows[T <: Throwable: ClassTag](p: T => Boolean)(body: => Any): Unit
4747
end assertThrows
4848

4949
def toolArgsFor(files: List[JPath], charset: Charset = UTF_8): List[String] =
50-
files.flatMap(path => toolArgsParse(Files.lines(path, charset).limit(10).toScala(List)))
50+
files.flatMap(path => toolArgsParse(resource(Files.lines(path, charset))(_.limit(10).toScala(List))))
5151

5252
// Inspect the first 10 of the given lines for compiler options of the form
5353
// `// scalac: args`, `/* scalac: args`, ` * scalac: args`.

0 commit comments

Comments
 (0)