Skip to content

Commit 77c5c51

Browse files
committed
Use File.separator
1 parent 2181000 commit 77c5c51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package dotty.tools.dotc.fromtasty
22

3-
import java.nio.file.{Files, Path, Paths}
3+
import java.nio.file.{Files, Path}
4+
import java.io
45

5-
import dotty.tools.dotc.core.Contexts.Context
66
import dotty.tools.dotc.core.NameKinds
77
import dotty.tools.dotc.core.Names.SimpleName
88
import dotty.tools.dotc.core.StdNames.nme
@@ -33,7 +33,7 @@ object TastyFileUtil {
3333
}.collect {
3434
case name: SimpleName => name.toString
3535
}.toList
36-
val classInPath = className.mkString("", "/", ".tasty")
36+
val classInPath = className.mkString("", io.File.separator, ".tasty")
3737
val classpath = path.toString.replace(classInPath, "")
3838
(classpath, className.mkString("."))
3939
}

0 commit comments

Comments
 (0)