File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
compiler/test/dotty/tools/backend/jvm Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ import scala.tools.asm.{ClassWriter, ClassReader}
21
21
import scala .tools .asm .tree ._
22
22
import java .io .{File => JFile , InputStream }
23
23
24
+ import org .junit .Assert ._
25
+
24
26
trait DottyBytecodeTest {
25
27
import AsmNode ._
26
28
import ASMConverters ._
@@ -75,7 +77,7 @@ trait DottyBytecodeTest {
75
77
}
76
78
77
79
/** Finds a class with `cls` as name in `dir`, throws if it can't find it */
78
- def findClass (cls : String , dir : Directory ) = {
80
+ def findClass (cls : String , dir : AbstractFile ) = {
79
81
val clsIn = dir.lookupName(s " $cls.class " , directory = false ).input
80
82
val clsNode = loadClassNode(clsIn)
81
83
assert(clsNode.name == cls, s " inspecting wrong class: ${clsNode.name}" )
@@ -229,7 +231,7 @@ trait DottyBytecodeTest {
229
231
}
230
232
.getOrElse(fail(" Could not find constructor for object `Test`" ))
231
233
232
- private def boxingError (ins : List [_], source : String ) =
234
+ private def boxingError (ins : List [_], source : String ) =
233
235
s """ |----------------------------------
234
236
| ${ins.mkString(" \n " )}
235
237
|----------------------------------
You can’t perform that action at this time.
0 commit comments