Closed
Description
When compiling lila with:
- scala 3.3.0-RC4
-Wunused:all
flag- openjdk version "17.0.6" 2023-01-17
- sbt 1.8.2
we get the following exception:
java.lang.AssertionError: NoDenotation.owner while running checkUnusedPostInlining on lila/modules/tree/src/main/Eval.scala
[info] exception occurred while compiling lila/modules/tree/src/main/Eval.scala, lila/modules/tree/src/main/package.scala, lila/modules/tree/src/main/tree.scala
java.lang.AssertionError: NoDenotation.owner while compiling lila/modules/tree/src/main/Eval.scala, lila/modules/tree/src/main/package.scala, lila/modules/tree/src/main/tree.scala
[error] ## Exception when compiling 3 sources to lila/modules/tree/target/scala-3.3.0-RC4/classes
[error] java.lang.AssertionError: NoDenotation.owner
Here's the full compiler output.
It works if we remove the -Wunused:all
flag from the build settings, or if we downgrade scala to 3.3.0-RC3.
How to reproduce:
git clone https://github.com/lichess-org/lila.git --branch scala-3.3.0-RC4
cd lila
sbt compile