We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 746b9c6 + b022b55 commit 593498dCopy full SHA for 593498d
compiler/test/dotty/tools/utils.scala
@@ -47,7 +47,7 @@ def assertThrows[T <: Throwable: ClassTag](p: T => Boolean)(body: => Any): Unit
47
end assertThrows
48
49
def toolArgsFor(files: List[JPath], charset: Charset = UTF_8): List[String] =
50
- files.flatMap(path => toolArgsParse(Files.lines(path, charset).limit(10).toScala(List)))
+ files.flatMap(path => toolArgsParse(resource(Files.lines(path, charset))(_.limit(10).toScala(List))))
51
52
// Inspect the first 10 of the given lines for compiler options of the form
53
// `// scalac: args`, `/* scalac: args`, ` * scalac: args`.
0 commit comments