Skip to content

Commit ca39da5

Browse files
committed
Fix console scalacOptions
The scala repl isn't usable, sbt> jvm/console [info] Starting scala interpreter... scala> import org.scalacheck.Prop import org.scalacheck.Prop <console>:11: warning: Unused import import org.scalacheck.Prop ^ error: No warnings can be incurred under -Xfatal-warnings. scala> Prop.passed <console>:12: error: not found: value Prop Prop.passed ^ The unused-import fatal warning for the console used to be disabled, but the filter of it was dismantled when an alternate version of the compiler flag, -Ywarn-unused-import, was introduced in 772ee61.
1 parent 8cef8ef commit ca39da5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ lazy val sharedSettings = MimaSettings.settings ++ scalaVersionSettings ++ Seq(
6565
scalaBinaryVersion.value match {
6666
case "2.10" => Seq("-Xlint")
6767
case "2.11" => Seq("-Xlint", "-Ywarn-infer-any", "-Ywarn-unused-import")
68-
case _ => Seq("-Xlint:-unused", "-Ywarn-infer-any", "-Ywarn-unused:imports,-patvars,-implicits,-locals,-privates,-explicits")
68+
case _ => Seq("-Xlint:-unused", "-Ywarn-infer-any", "-Ywarn-unused-import", "-Ywarn-unused:-patvars,-implicits,-locals,-privates,-explicits")
6969
}
7070
},
7171

0 commit comments

Comments
 (0)