File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/fromtasty Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ package dotty.tools.dotc.fromtasty
3
3
import dotty .tools .dotc .CompilationUnit
4
4
import dotty .tools .dotc .core .Contexts .Context
5
5
import dotty .tools .dotc .util .NoSource
6
- import dotty .tools .io .Path
6
+ import dotty .tools .io .File
7
7
8
8
class TASTYCompilationUnit (val className : String ) extends CompilationUnit (NoSource ) {
9
9
override def toString : String = s " class file $className"
10
10
}
11
11
object TASTYCompilationUnit {
12
12
def apply (className : String )(implicit ctx : Context ): Option [TASTYCompilationUnit ] = {
13
- if (Path (className).exists) {
13
+ if (File (className).exists) {
14
14
ctx.inform(s " Ignoring $className: cannot create a `TASTYCompilationUnit` for a source file. " )
15
15
None
16
16
} else {
You can’t perform that action at this time.
0 commit comments