We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ceea464 commit b717d20Copy full SHA for b717d20
compiler/test/dotty/tools/utils.scala
@@ -17,8 +17,10 @@ import scala.util.control.{ControlThrowable, NonFatal}
17
18
import dotc.config.CommandLineParser
19
20
+object Dummy
21
+
22
def scripts(path: String): Array[File] = {
- val dir = new File(this.getClass.getResource(path).getPath)
23
+ val dir = new File(Dummy.getClass.getResource(path).getPath)
24
assert(dir.exists && dir.isDirectory, "Couldn't load scripts dir")
25
dir.listFiles.filter { f =>
26
val path = if f.isDirectory then f.getPath + "/" else f.getPath
0 commit comments