scala3
scala3 copied to clipboard
The Scala 3 compiler, also known as Dotty.
## Compiler version 3.1.3 ## Minimized code **f.scala**: ```scala package f type R type I >: R sealed trait F[+R, +A] object F { def p[A](x: A): F[Nothing, A] =...
## Compiler version 3.1.2 ## Description If you use PartialFunction with ? =>, if you use apply, you will get a Match Error if you pass a key that does...
## Compiler version 3.1.3 ### Description When compiling a lambda, the arguments to the generated bootstrap method in the generated class file violate the rules given in the JDK documentation....
Forward port the Scala 2 feature, tracking imports when contexts are created, and registering when selectors are used. Some support for `-rewrite` to remove unused selectors (if there is only...
Forward port https://github.com/scala/scala/commit/f428cc6d94bbfee6ba3f7a956d0eee7126d785af Forward port https://github.com/scala/scala/commit/85136e3f2591f0bf22d3845ecc83081a0b6c4aa4 The dotty reader has `lastCharOffset` to track where the last char began. There is no need to back up to it.
## Compiler version 3.0.0, 3.1.0, 3.1.2, 3.2.0-RC1 ## Minimized code ``` libraryDependencies += "org.scala-lang.modules" %% "scala-xml" % "2.1.0" ``` ```Scala trait Renderer[A]: def render(x: A): xml.Elem given Renderer[Int] with def...
## Compiler version ``` scalaVersion := "3.0.0-RC3", scalacOptions ++= Seq("-no-indent") ``` ## Minimized code create simple file with indentation-based syntax for template definition of package definition ```scala trait A: def...
## Compiler version `3.1.3-RC1-bin-20220323-fb7f900-NIGHTLY` ## Minimized code `UndefOr` is based on the Scala.js concept: https://github.com/scala-js/scala-js/blob/058532aa8c504b76431b40e3e1b51b2cdef87643/library/src/main/scala/scala/scalajs/js/package.scala#L85 The minimized example below demonstrates a common situation when working with Scala.js facades. ```scala //>...
We need to forward-port @harpocrates's https://github.com/scala/scala/pull/9551. Note that our equivalent of Scala 2's JavaParsers is in https://github.com/lampepfl/dotty/blob/main/compiler/src/dotty/tools/dotc/parsing/JavaParsers.scala.
## Compiler version - 3.2.1-RC1-bin-20220720-6c7acf9-NIGHTLY - 3.2.0-RC2 - 3.1.3 ## Minimized code #### build.sbt ```scala scalaVersion := "3.2.1-RC1-bin-20220720-6c7acf9-NIGHTLY" libraryDependencies += "com.chuusai" %% "shapeless" % "2.3.9" cross CrossVersion.for3Use2_13 ``` #### Main.scala...