scala3
scala3 copied to clipboard
The Scala 3 compiler, also known as Dotty.
## Compiler version 3.3.6 through latest nightly 3.7.2-RC1-bin-20250523-ee14905-NIGHTLY ## Minimized code ```scala trait Show[A] { def apply(a: A): String } object Show { given str[S s } case class Test()...
## Compiler version Scala compiler version 3.7.1-RC1-bin-SNAPSHOT-nonbootstrapped-git-24b2dc7 ## Minimized code ```scala trait P[F[_]] trait Q[F[_]] extends P[F] case class W[A](as: A) object W: implicit def w: Q[W] = ??? def...
## Compiler version 3.6.4 and 3.7.0-RC1 ## Minimized code ```Scala import scala.util.boundary import scala.annotation.constructorOnly class Leak()(using @constructorOnly l: boundary.Label[String]) { Seq("a", "b").foreach(_ => boundary.break("stop")) } ``` ## Output Compilation error...
refs: https://openjdk.org/jeps/8357674 I think this can improve the performance of patten matching.
## Compiler version Scala 3.7.0 (Confirmed with both sbt and Scala CLI) ## Minimized code ```scala type DoubleToString[D "_" @main def main(): Unit = summon[DoubleToString[0.0] =:= "0.0"] summon[DoubleToString[-0.0] =:= "0.0"]...
## Compiler version 3.6.4 3.7.0 ## Minimized code ```Scala //> using scala 3.7.0 class Foo(v: Any) extends AnyVal: def bar[X](bar: X)[Y]: Any = v @main def run: Unit = val...
Sorry for the poor issue title, I didn't have time to minimize it further and remove the akka dependency. ## Compiler version 3.7.0 ## Minimized example ``` //> using scala...
## Compiler version 3.7.0 ## Minimized example ```Scala trait A[a] { trait B[b] } ??? match { case _: A[t]#B[String] => ??? } ``` ## Output ```scala Not found: type...
## Compiler version - 3.7.0 - 3.7.1-RC2 ## Minimized example ``` Welcome to Scala 3.7.1-RC2 (21.0.7, Java OpenJDK 64-Bit Server VM). Type in expressions for evaluation. Or try :help. scala>...
Warn in: 3.4 Error in: TBD