scala3
scala3 copied to clipboard
The Scala 3 compiler, also known as Dotty.
We needed to delay the inlining of the transparent inline when typing the unapply function application. We used the NoInline mode, but this also stopped the inlining of the arguments...
## Compiler version 3.4.nightly With the recent changes to use JDK 17/21 in the CI we need to ensure that published artifacts and referenced API would be JDK 8 compatible....
[Zinc](https://github.com/sbt/zinc) is the incremental compiler for Scala used by most build tools. Zinc needs some metadata to run its incremental algorithm, extracted in the [ExtractAPI](https://github.com/lampepfl/dotty/blob/main/compiler/src/dotty/tools/dotc/sbt/ExtractAPI.scala) and [ExtractDependencies](https://github.com/lampepfl/dotty/blob/main/compiler/src/dotty/tools/dotc/sbt/ExtractDependencies.scala) phases, which happen...
## Compiler version 3.4.0 ## Minimized code ```Scala import scala.deriving.Mirror case class A(x: Int, y: String) trait SomeTrait[T] object SomeTrait: given [T]: SomeTrait[T] with {} def f1[T](using p: Mirror.ProductOf[T]): Tuple.Elem[p.MirroredElemTypes,...
## Compiler version 3.4.2-RC1 ## Minimized example ```Scala trait V: type X = this.type match case W[x] => x trait W[+Y] extends V extension (self: Any) def as[T]: T =...
support `ThisBuild/usePipelining := true` in sbt for Scala 3 projects. ### Requirements - add `-Ypickle-java` and `-Ypickle-write` flags, expected by Zinc when pipelining is enabled in sbt. - presence of...
The aim of this ~~draft~~ PR is to introduce a compiler improvement for the use in IDEs. The idea was to allow for IDE's to work on erroring projects more...
Checking if the prefix is pure is not enough to know if we need to list the prefix. In the case of default parameters, the prefix tree might be used...
__THIS PR IS TO EVALUATE THE FEASIBILITY OF THIS CHANGE__ This scheme was devised as a simple way to enable experimental on non-stable released. This made it impossible to publish...
## Compiler version 3.3.0-RC2 ## Minimized code ```Scala $ scala-cli repl -S 3.3.0-RC2 Welcome to Scala 3.3.0-RC2 (17.0.4.1, Java OpenJDK 64-Bit Server VM). Type in expressions for evaluation. Or try...