Skip to content

Commit d74da84

Browse files
committed
Do not enable the Scala2 compatiblity mode by default
It may prevent valid Dotty code from compiling.
1 parent fa151e2 commit d74da84

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

build.sbt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ lazy val root = (project in file(".")).
1212
scalaOrganization := "ch.epfl.lamp",
1313

1414
// Enable Scala 2 compatibility mode.
15-
// This will allow you to use Scala 2 features that have been removed
16-
// from Dotty, like procedure syntax.
17-
// This is not required to compile code with Dotty, but it makes it easier
18-
// to test Dotty on an existing Scala 2 code base.
19-
// The long-term plan is to have a rewriting tool that can do most of the
20-
// porting work for you.
21-
scalacOptions ++= Seq("-language:Scala2"),
15+
// This allows you to use Scala 2 features that have been removed
16+
// from Dotty, like procedure syntax, thus making it easier to test
17+
// Dotty on an existing Scala 2 code base.
18+
// A rewriting tool that can do the porting for you is currently in
19+
// development at https://github.com/scalacenter/scalafix
20+
// Note that this affects typechecking and thus may prevent some valid
21+
// Dotty code from compiling, so it is not enabled by default.
22+
// scalacOptions ++= Seq("-language:Scala2"),
2223

2324
// Note: Dotty can use Scala 2.11 libraries so we set `scalaBinaryVersion`
2425
// to `2.11` for convenience. However, if you publish an artefact compiled

0 commit comments

Comments
 (0)