scala3
scala3 copied to clipboard
The Scala 3 compiler, also known as Dotty.
3.1.3 This looks some kind of a race condition in the compiler because it's not always happening on my machine. From time to time I'm getting output like this while...
Adds the correct fallback fonts to the `typography.css`. This improves readibility for users who for some reason can't load the fonts (e.g. disabled JS/custom fonts on their browsers). WIthout this...
Among the multiple changes in #15697 the footer text stoped being configurable (defaulting to an EPFL copyright). This PR makes the footer text configurable again. Incidentally, this will also fix...
## Compiler version 3.2.0 ## Minimized code ```Scala sealed trait Nat case class Zero() extends Nat case class Succ[+N predN trait A[N
Compiler 3.1.3 but other versions are affected too. ```scala trait MessageMat { inline implicit def apply(inline message: String): Message = ${ LogMessageMacro.message('message) } } object Message extends MessageMat {} val...
## Compiler version 3.2.0 ## Minimized code ```Scala sealed trait Nat case class Zero() extends Nat case class Succ[N predN type PredOrZeroOption[N Some[predN] def predOrZeroOption[N None case Succ(predN): Succ[_] =>Some(predN)...
## Compiler version Tried this with 3.2.1-RC2 and 3.2.1-RC1. ## Minimized code ```scala import scala.annotation.targetName enum CT: case LOCAL_DATE, LOCAL_DATE_TIME, INT def cv[T](i: String) = s"cv('$i')" @targetName("cv_date") def cv[T
## Compiler version 3.2.0 ## Minimized code ```Scala import scala.annotation.tailrec enum Free[+F[_], A]: case Return(a: A) extends Free[Nothing, A] case Suspend(s: F[A]) case FlatMap[F[_], X, A](s: Free[F, X], f: X...
Regression found in [Open CB #7361](https://scala3.westeurope.cloudapp.azure.com/job/buildCommunityProject/7361/) for scalanlp/breeze Bisect points to https://github.com/lampepfl/dotty/commit/57f53d0725c859bffcadc8919524b9b0d43805ba ## Compiler version 3.2.2-RC1-nightly Works in 3.2.1-RC1 ## Minimized code ```Scala trait BatchDiffFunction[T] abstract class FirstOrderMinimizer[T, DF
It's natural to rewrite ``` if b.exists then b else x end if // b.exists (label is not checked against condition) ``` to ``` opt orElse { x } end...