Skip to content

Commit 2c6052d

Browse files
committed
fixed PatternSyntaxException on Windows
1 parent feaa0ae commit 2c6052d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/src/dotty/tools/dotc/config/ScalaSettings.scala

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

4+
import java.io.File
5+
46
import PathResolver.Defaults
57
import rewrite.Rewrites
68

@@ -111,7 +113,7 @@ class ScalaSettings extends Settings.SettingGroup {
111113
"-project",
112114
"project title",
113115
"The name of the project",
114-
sys.props("user.dir").split(sys.props("file.separator")).last
116+
sys.props("user.dir").split(File.separatorChar).last
115117
)
116118

117119
val wikiSyntax = BooleanSetting("-Xwiki-syntax", "Retains the Scala2 behavior of using Wiki Syntax in Scaladoc")

0 commit comments

Comments
 (0)