We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build.sbt:
lazy val root = (project in file(".")). settings( name := "sbt-hello", scalaVersion := "2.13.11" ) ThisBuild / incOptions ~= { _.withUseOptimizedSealed(true) }
Sealed.scala:
sealed trait Sealed class Child1 extends Sealed
PatMat.scala:
object PatMat { def test(x: Sealed): Int = x match { case _: Child1 => 1 } }
compile
class Child2 extends Sealed
If I change scalaVersion to 2.12.18, then PatMat.scala is recompiled as expected. I assume the zinc scripted tests such as https://github.com/sbt/zinc/tree/develop/zinc/src/sbt-test/source-dependencies/patMat-scope only run with 2.12, it'd be great to run them with 2.13 too to catch this sort of issues.
scalaVersion
2.12.18
PatMat.scala
/cc @retronym who might be aware of projects that use useOptimizedSealed.
useOptimizedSealed
The text was updated successfully, but these errors were encountered:
Fixed in #1278
Sorry, something went wrong.
No branches or pull requests
build.sbt:
Sealed.scala:
PatMat.scala:
compile
class Child2 extends Sealed
compile
again, only Sealed.scala is recompiled.If I change
scalaVersion
to2.12.18
, thenPatMat.scala
is recompiled as expected.I assume the zinc scripted tests such as https://github.com/sbt/zinc/tree/develop/zinc/src/sbt-test/source-dependencies/patMat-scope only run with 2.12, it'd be great to run them with 2.13 too to catch this sort of issues.
/cc @retronym who might be aware of projects that use
useOptimizedSealed
.The text was updated successfully, but these errors were encountered: