Skip to content

Commit a40d80c

Browse files
committed
Build.scala: only enable features we use
-language:_ does not work when compiling dotty with dotty because it implies -language:keepUnions which prevents dotty from typechecking
1 parent 66e02a5 commit a40d80c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

project/Build.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ object DottyBuild extends Build {
6060
"jline" % "jline" % "2.12"),
6161

6262
// scalac options
63-
scalacOptions in Global ++= Seq("-feature", "-deprecation", "-language:_"),
63+
scalacOptions in Global ++= Seq("-feature", "-deprecation", "-language:existentials,higherKinds,implicitConversions"),
6464

6565
javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation"),
6666

@@ -144,7 +144,7 @@ object DottyBuild extends Build {
144144
testFrameworks += new TestFramework("org.scalameter.ScalaMeterFramework"),
145145

146146
// scalac options
147-
scalacOptions in Global ++= Seq("-feature", "-deprecation", "-language:_"),
147+
scalacOptions in Global ++= Seq("-feature", "-deprecation", "-language:existentials,higherKinds,implicitConversions"),
148148

149149
javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation"),
150150

0 commit comments

Comments
 (0)