Closed Veyronix closed 1 year ago
Hello, the scala compiler is not binary compatible between releases. If you have a project that depends on the Scala compiler, or on scala.reflect.internal
, you need to fully cross-build (https://www.scala-sbt.org/1.x/docs/Cross-Build.html#Overriding+the+publishing+convention) and build / release against every Scala minor version. See also https://docs.scala-lang.org/overviews/core/binary-compatibility-of-scala-releases.html#concretely.
Reproduction steps
scala.tools.nsc.Reporting$PerRunReporting.warning
method.Problem
The project no longer compiles. Reason:
Adding a parameter with a default value to the
warning
method in Scala 2.13.12 made it not binary-compatible. Commit which introduced the problem https://github.com/scala/scala/commit/e445819e1490c27232f6a828fb832abbc675ded0