Skip to content

Commit c10c38b

Browse files
committed
Suppress new warning about kind-polymorphic type inferred as Nothing
Taken from: typelevel/sbt-typelevel#840 Implements @som-snytt's recommendation in scala/bug#13128 (comment).
1 parent 8559b97 commit c10c38b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.sbt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,8 @@ lazy val compileSettings = Def.settings(
316316
scalacOptions ++= {
317317
scalaBinaryVersion.value match {
318318
case "2.13" =>
319-
Seq("-Xsource:3-cross")
319+
// https://github.com/scala/bug/issues/13128#issuecomment-3375870295
320+
Seq("-Xsource:3-cross", "-Xlint:-infer-any")
320321
case _ =>
321322
Nil
322323
}

0 commit comments

Comments
 (0)