Skip to content

Commit 0688420

Browse files
committed
Address review comment
1 parent 54cc175 commit 0688420

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/fromtasty/TASTYCompilationUnit.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ package dotty.tools.dotc.fromtasty
33
import dotty.tools.dotc.CompilationUnit
44
import dotty.tools.dotc.core.Contexts.Context
55
import dotty.tools.dotc.util.NoSource
6-
import dotty.tools.io.Path
6+
import dotty.tools.io.File
77

88
class TASTYCompilationUnit(val className: String) extends CompilationUnit(NoSource) {
99
override def toString: String = s"class file $className"
1010
}
1111
object TASTYCompilationUnit {
1212
def apply(className: String)(implicit ctx: Context): Option[TASTYCompilationUnit] = {
13-
if (Path(className).exists) {
13+
if (File(className).exists) {
1414
ctx.inform(s"Ignoring $className: cannot create a `TASTYCompilationUnit` for a source file.")
1515
None
1616
} else {

0 commit comments

Comments
 (0)