File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,15 @@ lazy val root = (project in file(".")).
9
9
// Dotty version
10
10
scalaVersion := " 0.1-SNAPSHOT" ,
11
11
12
+ // Enable Scala 2 compatibility mode.
13
+ // This will allow you to use Scala 2 features that have been removed
14
+ // from Dotty, like procedure syntax.
15
+ // This is not required to compile code with Dotty, but it makes it easier
16
+ // to test Dotty on an existing Scala 2 code base.
17
+ // The long-term plan is to have a rewriting tool that can do most of the
18
+ // porting work for you.
19
+ scalacOptions ++= Seq (" -language:Scala2" ),
20
+
12
21
// Note: Dotty can use Scala 2.11 libraries so we set `scalaBinaryVersion`
13
22
// to `2.11` for convenience. However, if you publish an artefact compiled
14
23
// with Dotty, you should set it to `0.1`, this will force you to change
You can’t perform that action at this time.
0 commit comments