sbt project compiled with Scala 3 Usage Example of case class compile error when it is nested in a inline function. Just run: > sbt clean test:compile To see the error.